[][src]Struct selectel_mks::cluster::schemas::Cluster

pub struct Cluster {
    pub id: String,
    pub created_at: DateTime<Utc>,
    pub updated_at: Option<DateTime<Utc>>,
    pub name: String,
    pub status: Status,
    pub project_id: String,
    pub network_id: String,
    pub subnet_id: String,
    pub kube_api_ip: String,
    pub kube_version: String,
    pub region: String,
    pub pki_tree_updated_at: Option<DateTime<Utc>>,
    pub maintenance_window_start: Option<String>,
    pub maintenance_window_end: Option<String>,
    pub maintenance_last_start: Option<DateTime<Utc>>,
    pub enable_autorepair: bool,
    pub enable_patch_version_auto_upgrade: bool,
    pub zonal: bool,
    pub kubernetes_options: KubernetesOptions,
}

Cluster represents a deserialized cluster body from an API response.

Fields

id: String

Cluster identifier.

created_at: DateTime<Utc>

Timestamp in UTC timezone of when the cluster has been created.

updated_at: Option<DateTime<Utc>>

Timestamp in UTC timezone of when the cluster has been updated.

name: String

Cluster name.

status: Status

Cluster status.

project_id: String

Project reference.

network_id: String

Network reference

subnet_id: String

Subnet reference.

kube_api_ip: String

IP of the Kubernetes API.

kube_version: String

Current Kubernetes version of the cluster.

region: String

Region of where the cluster is located.

pki_tree_updated_at: Option<DateTime<Utc>>

Timestamp in UTC timezone of when the PKI-tree of the cluster has been updated.

maintenance_window_start: Option<String>

UTC time in "hh:mm:ss" format of when the cluster will start its maintenance tasks.

maintenance_window_end: Option<String>

UTC time in "hh:mm:ss" format of when the cluster will end its maintenance tasks.

maintenance_last_start: Option<DateTime<Utc>>

Timestamp in UTC timezone of the last cluster maintenance start.

enable_autorepair: bool

Flag that indicates if worker nodes are allowed to be reinstalled automatically in case of their unavailability or unhealthiness.

enable_patch_version_auto_upgrade: bool

Flag that indicates if Kubernetes patch version of the cluster is allowed to be upgraded automatically.

zonal: bool

Flag that indicates that cluster has only a single master and that control-plane is not in highly available mode.

kubernetes_options: KubernetesOptions

Additional Kubernetes-related options such as pod security policy, feature gates, etc.

Trait Implementations

impl Debug for Cluster[src]

impl<'de> Deserialize<'de> for Cluster[src]

impl Serialize for Cluster[src]

Auto Trait Implementations

impl RefUnwindSafe for Cluster

impl Send for Cluster

impl Sync for Cluster

impl Unpin for Cluster

impl UnwindSafe for Cluster

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.