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 PartialEq<CustomResourceConversion> for CustomResourceConversion
impl PartialEq<CustomResourceConversion> for CustomResourceConversion
source§fn eq(&self, other: &CustomResourceConversion) -> bool
fn eq(&self, other: &CustomResourceConversion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.