[−][src]Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::CustomResourceDefinitionSpec
CustomResourceDefinitionSpec describes how a user wants their resource to appear
Fields
additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>
AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive.
conversion: Option<CustomResourceConversion>
conversion
defines conversion settings for the CRD.
group: String
Group is the group this resource belongs in
names: CustomResourceDefinitionNames
Names are the names used to describe this custom resource
preserve_unknown_fields: Option<bool>
preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1.
scope: String
Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced
subresources: Option<CustomResourceSubresources>
Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive.
validation: Option<CustomResourceValidation>
Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive.
version: Option<String>
Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use Versions
.
versions: Option<Vec<CustomResourceDefinitionVersion>>
Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
Trait Implementations
impl Default for CustomResourceDefinitionSpec
[src]
impl Clone for CustomResourceDefinitionSpec
[src]
fn clone(&self) -> CustomResourceDefinitionSpec
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<CustomResourceDefinitionSpec> for CustomResourceDefinitionSpec
[src]
fn eq(&self, other: &CustomResourceDefinitionSpec) -> bool
[src]
fn ne(&self, other: &CustomResourceDefinitionSpec) -> bool
[src]
impl Debug for CustomResourceDefinitionSpec
[src]
impl Serialize for CustomResourceDefinitionSpec
[src]
impl<'de> Deserialize<'de> for CustomResourceDefinitionSpec
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for CustomResourceDefinitionSpec
impl Sync for CustomResourceDefinitionSpec
impl Send for CustomResourceDefinitionSpec
impl UnwindSafe for CustomResourceDefinitionSpec
impl RefUnwindSafe for CustomResourceDefinitionSpec
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,