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