#[non_exhaustive]pub struct ClusterAutoscaling {
pub enable_node_autoprovisioning: bool,
pub resource_limits: Vec<ResourceLimit>,
pub autoscaling_profile: AutoscalingProfile,
pub autoprovisioning_node_pool_defaults: Option<AutoprovisioningNodePoolDefaults>,
pub autoprovisioning_locations: Vec<String>,
pub default_compute_class_config: Option<DefaultComputeClassConfig>,
/* private fields */
}Expand description
ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_node_autoprovisioning: boolEnables automatic node pool creation and deletion.
resource_limits: Vec<ResourceLimit>Contains global constraints regarding minimum and maximum amount of resources in the cluster.
autoscaling_profile: AutoscalingProfileDefines autoscaling behaviour.
autoprovisioning_node_pool_defaults: Option<AutoprovisioningNodePoolDefaults>AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
autoprovisioning_locations: Vec<String>The list of Google Compute Engine zones in which the NodePool’s nodes can be created by NAP.
default_compute_class_config: Option<DefaultComputeClassConfig>Default compute class is a configuration for default compute class.
Implementations§
Source§impl ClusterAutoscaling
impl ClusterAutoscaling
pub fn new() -> Self
Sourcepub fn set_enable_node_autoprovisioning<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_node_autoprovisioning<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_node_autoprovisioning.
Sourcepub fn set_resource_limits<T, V>(self, v: T) -> Self
pub fn set_resource_limits<T, V>(self, v: T) -> Self
Sets the value of resource_limits.
Sourcepub fn set_autoscaling_profile<T: Into<AutoscalingProfile>>(self, v: T) -> Self
pub fn set_autoscaling_profile<T: Into<AutoscalingProfile>>(self, v: T) -> Self
Sets the value of autoscaling_profile.
Sourcepub fn set_autoprovisioning_node_pool_defaults<T>(self, v: T) -> Selfwhere
T: Into<AutoprovisioningNodePoolDefaults>,
pub fn set_autoprovisioning_node_pool_defaults<T>(self, v: T) -> Selfwhere
T: Into<AutoprovisioningNodePoolDefaults>,
Sets the value of autoprovisioning_node_pool_defaults.
Sourcepub fn set_or_clear_autoprovisioning_node_pool_defaults<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AutoprovisioningNodePoolDefaults>,
pub fn set_or_clear_autoprovisioning_node_pool_defaults<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<AutoprovisioningNodePoolDefaults>,
Sets or clears the value of autoprovisioning_node_pool_defaults.
Sourcepub fn set_autoprovisioning_locations<T, V>(self, v: T) -> Self
pub fn set_autoprovisioning_locations<T, V>(self, v: T) -> Self
Sets the value of autoprovisioning_locations.
Sourcepub fn set_default_compute_class_config<T>(self, v: T) -> Selfwhere
T: Into<DefaultComputeClassConfig>,
pub fn set_default_compute_class_config<T>(self, v: T) -> Selfwhere
T: Into<DefaultComputeClassConfig>,
Sets the value of default_compute_class_config.
Sourcepub fn set_or_clear_default_compute_class_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DefaultComputeClassConfig>,
pub fn set_or_clear_default_compute_class_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<DefaultComputeClassConfig>,
Sets or clears the value of default_compute_class_config.
Trait Implementations§
Source§impl Clone for ClusterAutoscaling
impl Clone for ClusterAutoscaling
Source§fn clone(&self) -> ClusterAutoscaling
fn clone(&self) -> ClusterAutoscaling
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more