Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::CustomResourceConversion
source · pub struct CustomResourceConversion {
pub strategy: String,
pub webhook: Option<WebhookConversion>,
}
Expand description
CustomResourceConversion describes how to convert different versions of a CR.
Fields§
§strategy: String
strategy specifies how custom resources are converted between versions. Allowed values are: - "None"
: The converter only change the apiVersion and would not touch any other field in the custom resource. - "Webhook"
: API Server will call to an external webhook to do the conversion. Additional information
is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.
webhook: Option<WebhookConversion>
webhook describes how to call the conversion webhook. Required when strategy
is set to "Webhook"
.
Trait Implementations§
source§impl Clone for CustomResourceConversion
impl Clone for CustomResourceConversion
source§fn clone(&self) -> CustomResourceConversion
fn clone(&self) -> CustomResourceConversion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CustomResourceConversion
impl Debug for CustomResourceConversion
source§impl DeepMerge for CustomResourceConversion
impl DeepMerge for CustomResourceConversion
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for CustomResourceConversion
impl Default for CustomResourceConversion
source§fn default() -> CustomResourceConversion
fn default() -> CustomResourceConversion
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CustomResourceConversion
impl<'de> Deserialize<'de> for CustomResourceConversion
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for CustomResourceConversion
impl JsonSchema for CustomResourceConversion
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for CustomResourceConversion
impl PartialEq for CustomResourceConversion
source§impl Serialize for CustomResourceConversion
impl Serialize for CustomResourceConversion
impl StructuralPartialEq for CustomResourceConversion
Auto Trait Implementations§
impl Freeze for CustomResourceConversion
impl RefUnwindSafe for CustomResourceConversion
impl Send for CustomResourceConversion
impl Sync for CustomResourceConversion
impl Unpin for CustomResourceConversion
impl UnwindSafe for CustomResourceConversion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)