ClusterStatus

Struct ClusterStatus 

Source
pub struct ClusterStatus {
Show 28 fields pub active_schedule: Option<bool>, pub agent: Option<ClusterStatusAgent>, pub agent_affinity_hash: Option<String>, pub agent_config_changed: Option<bool>, pub agent_deployed_generation: Option<i64>, pub agent_env_vars_hash: Option<String>, pub agent_host_network: Option<bool>, pub agent_migrated: Option<bool>, pub agent_namespace_migrated: Option<bool>, pub agent_private_repo_url: Option<String>, pub agent_resources_hash: Option<String>, pub agent_scheduling_customization_hash: Option<String>, pub agent_tls_mode: Option<String>, pub agent_tolerations_hash: Option<String>, pub api_server_ca_hash: Option<String>, pub api_server_url: Option<String>, pub cattle_namespace_migrated: Option<bool>, pub conditions: Option<Vec<ClusterStatusConditions>>, pub desired_ready_git_repos: Option<i64>, pub desired_ready_helm_ops: Option<i64>, pub display: Option<ClusterStatusDisplay>, pub garbage_collection_interval: Option<String>, pub namespace: Option<String>, pub ready_git_repos: Option<i64>, pub ready_helm_ops: Option<i64>, pub resource_counts: Option<ClusterStatusResourceCounts>, pub scheduled: Option<bool>, pub summary: Option<ClusterStatusSummary>,
}

Fields§

§active_schedule: Option<bool>

ActiveSchedule specifies if the cluster is in schedule, which means BundleDeployments can be updated and deployed. If ActiveSchedule is set to false and Scheduled is set to true BundleDeployments are not updated nor deployed.

§agent: Option<ClusterStatusAgent>

AgentStatus contains information about the agent.

§agent_affinity_hash: Option<String>

AgentAffinityHash is a hash of the agent’s affinity configuration, used to detect changes.

§agent_config_changed: Option<bool>

AgentConfigChanged is set to true if any of the agent configuration changed, like the API server URL or CA. Setting it to true will trigger a re-import of the cluster.

§agent_deployed_generation: Option<i64>

AgentDeployedGeneration is the generation of the agent that is currently deployed.

§agent_env_vars_hash: Option<String>

AgentEnvVarsHash is a hash of the agent’s env vars, used to detect changes.

§agent_host_network: Option<bool>

AgentHostNetwork defines observed state of spec.hostNetwork setting that is currently used.

§agent_migrated: Option<bool>

AgentMigrated is always set to true after importing a cluster. If false, it will trigger a migration. Old agents don’t have this in their status.

§agent_namespace_migrated: Option<bool>

AgentNamespaceMigrated is always set to true after importing a cluster. If false, it will trigger a migration. Old Fleet agents don’t have this in their status.

§agent_private_repo_url: Option<String>

AgentPrivateRepoURL is the private repo URL for the agent that is currently used.

§agent_resources_hash: Option<String>

AgentResourcesHash is a hash of the agent’s resources configuration, used to detect changes.

§agent_scheduling_customization_hash: Option<String>§agent_tls_mode: Option<String>

AgentTLSMode supports two values: system-store and strict. If set to system-store, instructs the agent to trust CA bundles from the operating system’s store. If set to strict, then the agent shall only connect to a server which uses the exact CA configured when creating/updating the agent.

§agent_tolerations_hash: Option<String>

AgentTolerationsHash is a hash of the agent’s tolerations configuration, used to detect changes.

§api_server_ca_hash: Option<String>

APIServerCAHash is a hash of the upstream API server CA, used to detect changes.

§api_server_url: Option<String>

APIServerURL is the currently used URL of the API server that the cluster uses to connect to upstream.

§cattle_namespace_migrated: Option<bool>

CattleNamespaceMigrated is always set to true after importing a cluster. If false, it will trigger a migration. Old Fleet agents, don’t have this in their status.

§conditions: Option<Vec<ClusterStatusConditions>>§desired_ready_git_repos: Option<i64>

DesiredReadyGitRepos is the number of gitrepos for this cluster that are desired to be ready.

§desired_ready_helm_ops: Option<i64>

DesiredReadyHelmOps is the number of helmop resources for this cluster that are desired to be ready.

§display: Option<ClusterStatusDisplay>

Display contains the number of ready bundles, nodes and a summary state.

§garbage_collection_interval: Option<String>

GarbageCollectionInterval determines how often agents clean up obsolete Helm releases.

§namespace: Option<String>

Namespace is the cluster namespace, it contains the clusters service account as well as any bundledeployments. Example: “cluster-fleet-local-cluster-294db1acfa77-d9ccf852678f”

§ready_git_repos: Option<i64>

ReadyGitRepos is the number of gitrepos for this cluster that are ready.

§ready_helm_ops: Option<i64>

ReadyHelmOps is the number of helmop resources for this cluster that are ready.

§resource_counts: Option<ClusterStatusResourceCounts>

ResourceCounts is an aggregate over the ResourceCounts.

§scheduled: Option<bool>

Scheduled specifies if the cluster has been added to any Schedule. When set to true ActiveSchedule is taken into account to check if the deployment can be deployed.

§summary: Option<ClusterStatusSummary>

Summary is a summary of the bundledeployments.

Trait Implementations§

Source§

impl Clone for ClusterStatus

Source§

fn clone(&self) -> ClusterStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClusterStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ClusterStatus

Source§

fn default() -> ClusterStatus

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ClusterStatus

Source§

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 JsonSchema for ClusterStatus

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for ClusterStatus

Source§

fn eq(&self, other: &ClusterStatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ClusterStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ClusterStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,