pub struct CustomResourceDefinitionVersion {
    pub additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>,
    pub deprecated: Option<bool>,
    pub deprecation_warning: Option<String>,
    pub name: String,
    pub schema: Option<CustomResourceValidation>,
    pub served: bool,
    pub storage: bool,
    pub subresources: Option<CustomResourceSubresources>,
}
Expand description

CustomResourceDefinitionVersion describes a version for CRD.

Fields

additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>

additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.

deprecated: Option<bool>

deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.

deprecation_warning: Option<String>

deprecationWarning overrides the default warning returned to API clients. May only be set when deprecated is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.

name: String

name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at /apis/\<group\>/\<version\>/... if served is true.

schema: Option<CustomResourceValidation>

schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.

served: bool

served is a flag enabling/disabling this version from being served via REST APIs

storage: bool

storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.

subresources: Option<CustomResourceSubresources>

subresources specify what subresources this version of the defined custom resource have.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.