pub struct ClusterSpec {Show 13 fields
pub agent_affinity: Option<ClusterAgentAffinity>,
pub agent_env_vars: Option<Vec<ClusterAgentEnvVars>>,
pub agent_namespace: Option<String>,
pub agent_resources: Option<ClusterAgentResources>,
pub agent_tolerations: Option<Vec<ClusterAgentTolerations>>,
pub client_id: Option<String>,
pub host_network: Option<bool>,
pub kube_config_secret: Option<String>,
pub kube_config_secret_namespace: Option<String>,
pub paused: Option<bool>,
pub private_repo_url: Option<String>,
pub redeploy_agent_generation: Option<i64>,
pub template_values: Option<BTreeMap<String, Value>>,
}
Fields§
§agent_affinity: Option<ClusterAgentAffinity>
AgentAffinity overrides the default affinity for the cluster’s agent deployment. If this value is nil the default affinity is used.
agent_env_vars: Option<Vec<ClusterAgentEnvVars>>
AgentEnvVars are extra environment variables to be added to the agent deployment.
agent_namespace: Option<String>
AgentNamespace defaults to the system namespace, e.g. cattle-fleet-system.
agent_resources: Option<ClusterAgentResources>
AgentResources sets the resources for the cluster’s agent deployment.
agent_tolerations: Option<Vec<ClusterAgentTolerations>>
AgentTolerations defines an extra set of Tolerations to be added to the Agent deployment.
client_id: Option<String>
ClientID is a unique string that will identify the cluster. It can either be predefined, or generated when importing the cluster.
host_network: Option<bool>
HostNetwork sets the agent Deployment to use hostNetwork: true setting. Allows for provisioning of network related bundles (CNI configuration).
kube_config_secret: Option<String>
KubeConfigSecret is the name of the secret containing the kubeconfig for the downstream cluster. It can optionally contain a APIServerURL and CA to override the values in the fleet-controller’s configmap.
kube_config_secret_namespace: Option<String>
KubeConfigSecretNamespace is the namespace of the secret containing the kubeconfig for the downstream cluster. If unset, it will be assumed the secret can be found in the namespace that the Cluster object resides within.
paused: Option<bool>
Paused if set to true, will stop any BundleDeployments from being updated.
private_repo_url: Option<String>
PrivateRepoURL prefixes the image name and overrides a global repo URL from the agents config.
redeploy_agent_generation: Option<i64>
RedeployAgentGeneration can be used to force redeploying the agent.
template_values: Option<BTreeMap<String, Value>>
TemplateValues defines a cluster specific mapping of values to be sent to fleet.yaml values templating.
Trait Implementations§
Source§impl Clone for ClusterSpec
impl Clone for ClusterSpec
Source§fn clone(&self) -> ClusterSpec
fn clone(&self) -> ClusterSpec
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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(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 ClusterSpec
impl PartialEq for ClusterSpec
Source§impl Serialize for ClusterSpec
impl Serialize for ClusterSpec
impl StructuralPartialEq for ClusterSpec
Auto 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§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