pub struct ClusterVariable {
pub name: String,
pub value: JSON,
}
Expand description
ClusterVariable can be used to customize the Cluster through patches. It must comply to the corresponding ClusterClassVariable defined in the ClusterClass.
Fields§
§name: String
Name of the variable.
value: JSON
Value of the variable. Note: the value will be validated against the schema of the corresponding ClusterClassVariable from the ClusterClass. Note: We have to use apiextensionsv1.JSON instead of a custom JSON type, because controller-tools has a hard-coded schema for apiextensionsv1.JSON which cannot be produced by another type via controller-tools, i.e. it’s not possible to have no type field. Ref: https://github.com/kubernetes-sigs/controller-tools/blob/d0e03a142d0ecdd5491593e941ee1d6b5d91dba6/pkg/crd/known_types.go#L106-L111
Trait Implementations§
Source§impl Clone for ClusterVariable
impl Clone for ClusterVariable
Source§fn clone(&self) -> ClusterVariable
fn clone(&self) -> ClusterVariable
Returns a duplicate 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 ClusterVariable
impl Debug for ClusterVariable
Source§impl Default for ClusterVariable
impl Default for ClusterVariable
Source§fn default() -> ClusterVariable
fn default() -> ClusterVariable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterVariable
impl<'de> Deserialize<'de> for ClusterVariable
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
Auto Trait Implementations§
impl Freeze for ClusterVariable
impl RefUnwindSafe for ClusterVariable
impl Send for ClusterVariable
impl Sync for ClusterVariable
impl Unpin for ClusterVariable
impl UnwindSafe for ClusterVariable
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