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

pub struct CustomResourceDefinitionSpec {
    pub additional_printer_columns: Option<Vec<CustomResourceColumnDefinition>>,
    pub conversion: Option<CustomResourceConversion>,
    pub group: String,
    pub names: CustomResourceDefinitionNames,
    pub scope: String,
    pub subresources: Option<CustomResourceSubresources>,
    pub validation: Option<CustomResourceValidation>,
    pub version: Option<String>,
    pub versions: Option<Vec<CustomResourceDefinitionVersion>>,
}

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

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 Clone for CustomResourceDefinitionSpec[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<CustomResourceDefinitionSpec> for CustomResourceDefinitionSpec[src]

impl Default for CustomResourceDefinitionSpec[src]

impl Debug for CustomResourceDefinitionSpec[src]

impl Serialize for CustomResourceDefinitionSpec[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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