Struct cluster_api_rs::api::capi_cluster::ClusterSpec
source · pub struct ClusterSpec {
pub cluster_network: Option<ClusterClusterNetwork>,
pub control_plane_endpoint: Option<ClusterControlPlaneEndpoint>,
pub control_plane_ref: Option<ObjectReference>,
pub infrastructure_ref: Option<ObjectReference>,
pub paused: Option<bool>,
pub topology: Option<ClusterTopology>,
}Expand description
ClusterSpec defines the desired state of Cluster.
Fields§
§cluster_network: Option<ClusterClusterNetwork>Cluster network configuration.
control_plane_endpoint: Option<ClusterControlPlaneEndpoint>ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
control_plane_ref: Option<ObjectReference>ControlPlaneRef is an optional reference to a provider-specific resource that holds the details for provisioning the Control Plane for a Cluster.
infrastructure_ref: Option<ObjectReference>InfrastructureRef is a reference to a provider-specific resource that holds the details for provisioning infrastructure for a cluster in said provider.
paused: Option<bool>Paused can be used to prevent controllers from processing the Cluster and all its associated objects.
topology: Option<ClusterTopology>This encapsulates the topology for the cluster. NOTE: It is required to enable the ClusterTopology feature gate flag to activate managed topologies support; this feature is highly experimental, and parts of it might still be not implemented.
Trait Implementations§
source§impl Clone for ClusterSpec
impl Clone for ClusterSpec
source§fn clone(&self) -> ClusterSpec
fn clone(&self) -> ClusterSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ClusterSpec
impl Debug for ClusterSpec
source§impl Default for ClusterSpec
impl Default for ClusterSpec
source§fn default() -> ClusterSpec
fn default() -> ClusterSpec
source§impl<'de> Deserialize<'de> for ClusterSpec
impl<'de> Deserialize<'de> for ClusterSpec
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 ClusterSpec
impl JsonSchema for ClusterSpec
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ClusterSpec
impl RefUnwindSafe for ClusterSpec
impl Send for ClusterSpec
impl Sync for ClusterSpec
impl Unpin for ClusterSpec
impl UnwindSafe for ClusterSpec
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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