ClusterStatus

Struct ClusterStatus 

Source
pub struct ClusterStatus {
Show 40 fields pub azure_pvc_update_enabled: Option<bool>, pub certificates: Option<ClusterStatusCertificates>, pub cloud_native_pg_commit_hash: Option<String>, pub cloud_native_pg_operator_hash: Option<String>, pub conditions: Option<Vec<ClusterStatusConditions>>, pub config_map_resource_version: Option<ClusterStatusConfigMapResourceVersion>, pub current_primary: Option<String>, pub current_primary_failing_since_timestamp: Option<String>, pub current_primary_timestamp: Option<String>, pub dangling_pvc: Option<Vec<String>>, pub first_recoverability_point: Option<String>, pub first_recoverability_point_by_method: Option<BTreeMap<String, String>>, pub healthy_pvc: Option<Vec<String>>, pub initializing_pvc: Option<Vec<String>>, pub instance_names: Option<Vec<String>>, pub instances: Option<i64>, pub instances_reported_state: Option<BTreeMap<String, ClusterStatusInstancesReportedState>>, pub instances_status: Option<BTreeMap<String, Vec<String>>>, pub job_count: Option<i32>, pub last_failed_backup: Option<String>, pub last_successful_backup: Option<String>, pub last_successful_backup_by_method: Option<BTreeMap<String, String>>, pub latest_generated_node: Option<i64>, pub managed_roles_status: Option<ClusterStatusManagedRolesStatus>, pub online_update_enabled: Option<bool>, pub phase: Option<String>, pub phase_reason: Option<String>, pub pooler_integrations: Option<ClusterStatusPoolerIntegrations>, pub pvc_count: Option<i32>, pub read_service: Option<String>, pub ready_instances: Option<i64>, pub resizing_pvc: Option<Vec<String>>, pub secrets_resource_version: Option<ClusterStatusSecretsResourceVersion>, pub tablespaces_status: Option<Vec<ClusterStatusTablespacesStatus>>, pub target_primary: Option<String>, pub target_primary_timestamp: Option<String>, pub timeline_id: Option<i64>, pub topology: Option<ClusterStatusTopology>, pub unusable_pvc: Option<Vec<String>>, pub write_service: Option<String>,
}
Expand description

Most recently observed status of the cluster. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

Fields§

§azure_pvc_update_enabled: Option<bool>

AzurePVCUpdateEnabled shows if the PVC online upgrade is enabled for this cluster

§certificates: Option<ClusterStatusCertificates>

The configuration for the CA and related certificates, initialized with defaults.

§cloud_native_pg_commit_hash: Option<String>

The commit hash number of which this operator running

§cloud_native_pg_operator_hash: Option<String>

The hash of the binary of the operator

§conditions: Option<Vec<ClusterStatusConditions>>

Conditions for cluster object

§config_map_resource_version: Option<ClusterStatusConfigMapResourceVersion>

The list of resource versions of the configmaps, managed by the operator. Every change here is done in the interest of the instance manager, which will refresh the configmap data

§current_primary: Option<String>

Current primary instance

§current_primary_failing_since_timestamp: Option<String>

The timestamp when the primary was detected to be unhealthy This field is reported when .spec.failoverDelay is populated or during online upgrades

§current_primary_timestamp: Option<String>

The timestamp when the last actual promotion to primary has occurred

§dangling_pvc: Option<Vec<String>>

List of all the PVCs created by this cluster and still available which are not attached to a Pod

§first_recoverability_point: Option<String>

The first recoverability point, stored as a date in RFC3339 format. This field is calculated from the content of FirstRecoverabilityPointByMethod

§first_recoverability_point_by_method: Option<BTreeMap<String, String>>

The first recoverability point, stored as a date in RFC3339 format, per backup method type

§healthy_pvc: Option<Vec<String>>

List of all the PVCs not dangling nor initializing

§initializing_pvc: Option<Vec<String>>

List of all the PVCs that are being initialized by this cluster

§instance_names: Option<Vec<String>>

List of instance names in the cluster

§instances: Option<i64>

The total number of PVC Groups detected in the cluster. It may differ from the number of existing instance pods.

§instances_reported_state: Option<BTreeMap<String, ClusterStatusInstancesReportedState>>

The reported state of the instances during the last reconciliation loop

§instances_status: Option<BTreeMap<String, Vec<String>>>

InstancesStatus indicates in which status the instances are

§job_count: Option<i32>

How many Jobs have been created by this cluster

§last_failed_backup: Option<String>

Stored as a date in RFC3339 format

§last_successful_backup: Option<String>

Last successful backup, stored as a date in RFC3339 format This field is calculated from the content of LastSuccessfulBackupByMethod

§last_successful_backup_by_method: Option<BTreeMap<String, String>>

Last successful backup, stored as a date in RFC3339 format, per backup method type

§latest_generated_node: Option<i64>

ID of the latest generated node (used to avoid node name clashing)

§managed_roles_status: Option<ClusterStatusManagedRolesStatus>

ManagedRolesStatus reports the state of the managed roles in the cluster

§online_update_enabled: Option<bool>

OnlineUpdateEnabled shows if the online upgrade is enabled inside the cluster

§phase: Option<String>

Current phase of the cluster

§phase_reason: Option<String>

Reason for the current phase

§pooler_integrations: Option<ClusterStatusPoolerIntegrations>

The integration needed by poolers referencing the cluster

§pvc_count: Option<i32>

How many PVCs have been created by this cluster

§read_service: Option<String>

Current list of read pods

§ready_instances: Option<i64>

The total number of ready instances in the cluster. It is equal to the number of ready instance pods.

§resizing_pvc: Option<Vec<String>>

List of all the PVCs that have ResizingPVC condition.

§secrets_resource_version: Option<ClusterStatusSecretsResourceVersion>

The list of resource versions of the secrets managed by the operator. Every change here is done in the interest of the instance manager, which will refresh the secret data

§tablespaces_status: Option<Vec<ClusterStatusTablespacesStatus>>

TablespacesStatus reports the state of the declarative tablespaces in the cluster

§target_primary: Option<String>

Target primary instance, this is different from the previous one during a switchover or a failover

§target_primary_timestamp: Option<String>

The timestamp when the last request for a new primary has occurred

§timeline_id: Option<i64>

The timeline of the Postgres cluster

§topology: Option<ClusterStatusTopology>

Instances topology.

§unusable_pvc: Option<Vec<String>>

List of all the PVCs that are unusable because another PVC is missing

§write_service: Option<String>

Current write pod

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() -> String

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 is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
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

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> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,