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

pub struct CreateOpts { /* fields omitted */ }

Create options for a new cluster.

Implementations

impl CreateOpts[src]

pub fn new(name: &str, kube_version: &str, region: &str) -> CreateOpts[src]

pub fn with_network_id(self, network_id: &str) -> CreateOpts[src]

Add a reference to a pre-created network.

pub fn with_subnet_id(self, subnet_id: &str) -> CreateOpts[src]

Add a reference to a pre-created subnet.

pub fn with_nodegroups(self, nodegroups: Vec<CreateOpts>) -> CreateOpts[src]

Add nodegroups parameters.

pub fn with_maintenance_window_start(
    self,
    maintenance_window_start: &str
) -> CreateOpts
[src]

Add maintenance_window_start in UTC. It should be in hh:mm:ss format.

pub fn with_enable_autorepair(self, enable_autorepair: bool) -> CreateOpts[src]

Add enable_autorepair flag. This flag indicates if worker nodes are allowed to be reinstalled automatically in case of their unavailability or unhealthiness.

pub fn with_enable_patch_version_auto_upgrade(
    self,
    enable_patch_version_auto_upgrade: bool
) -> CreateOpts
[src]

Add enable_patch_version_auto_upgrade flag. This flag indicates if Kubernetes patch version of the cluster is allowed to be upgraded automatically.

pub fn with_zonal(self, zonal: bool) -> CreateOpts[src]

Add zonal flag. This flag indicates that cluster has only a single master and that control-plane is not in highly available mode.

pub fn with_kubernetes_options(
    self,
    kubernetes_options: KubernetesOptions
) -> CreateOpts
[src]

Add kubernetes_options. This parameter represents additional options such as Pod Security Policy, feature gates, etc.

Trait Implementations

impl Debug for CreateOpts[src]

impl Serialize for CreateOpts[src]

Auto Trait Implementations

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