[][src]Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::CustomResourceDefinitionVersion

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>,
}

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. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version 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 and pruning of this version of the custom resource. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead).

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. Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead).

Trait Implementations

impl Clone for CustomResourceDefinitionVersion[src]

impl Debug for CustomResourceDefinitionVersion[src]

impl Default for CustomResourceDefinitionVersion[src]

impl<'de> Deserialize<'de> for CustomResourceDefinitionVersion[src]

impl PartialEq<CustomResourceDefinitionVersion> for CustomResourceDefinitionVersion[src]

impl Serialize for CustomResourceDefinitionVersion[src]

impl StructuralPartialEq for CustomResourceDefinitionVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.