pub struct ClusterClassSpec {
pub control_plane: Option<ClusterClassControlPlane>,
pub infrastructure: Option<ClusterClassInfrastructure>,
pub patches: Option<Vec<ClusterClassPatches>>,
pub variables: Option<Vec<ClusterClassVariables>>,
pub workers: Option<ClusterClassWorkers>,
}
Expand description
ClusterClassSpec describes the desired state of the ClusterClass.
Fields§
§control_plane: Option<ClusterClassControlPlane>
controlPlane is a reference to a local struct that holds the details for provisioning the Control Plane for the Cluster.
infrastructure: Option<ClusterClassInfrastructure>
infrastructure is a reference to a provider-specific template that holds the details for provisioning infrastructure specific cluster for the underlying provider. The underlying provider is responsible for the implementation of the template to an infrastructure cluster.
patches: Option<Vec<ClusterClassPatches>>
patches defines the patches which are applied to customize referenced templates of a ClusterClass. Note: Patches will be applied in the order of the array.
variables: Option<Vec<ClusterClassVariables>>
variables defines the variables which can be configured in the Cluster topology and are then used in patches.
workers: Option<ClusterClassWorkers>
workers describes the worker nodes for the cluster. It is a collection of node types which can be used to create the worker nodes of the cluster.
Trait Implementations§
Source§impl Clone for ClusterClassSpec
impl Clone for ClusterClassSpec
Source§fn clone(&self) -> ClusterClassSpec
fn clone(&self) -> ClusterClassSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClusterClassSpec
impl Debug for ClusterClassSpec
Source§impl Default for ClusterClassSpec
impl Default for ClusterClassSpec
Source§fn default() -> ClusterClassSpec
fn default() -> ClusterClassSpec
Source§impl<'de> Deserialize<'de> for ClusterClassSpec
impl<'de> Deserialize<'de> for ClusterClassSpec
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>,
Source§impl JsonSchema for ClusterClassSpec
impl JsonSchema for ClusterClassSpec
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for ClusterClassSpec
impl PartialEq for ClusterClassSpec
Source§impl Serialize for ClusterClassSpec
impl Serialize for ClusterClassSpec
impl StructuralPartialEq for ClusterClassSpec
Auto Trait Implementations§
impl Freeze for ClusterClassSpec
impl RefUnwindSafe for ClusterClassSpec
impl Send for ClusterClassSpec
impl Sync for ClusterClassSpec
impl Unpin for ClusterClassSpec
impl UnwindSafe for ClusterClassSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more