#[non_exhaustive]pub struct NodeManagement {
pub auto_upgrade: bool,
pub auto_repair: bool,
pub upgrade_options: Option<AutoUpgradeOptions>,
}Expand description
NodeManagement defines the set of node management services turned on for the node pool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auto_upgrade: boolA flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes.
auto_repair: boolA flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered.
upgrade_options: Option<AutoUpgradeOptions>Specifies the Auto Upgrade knobs for the node pool.
Implementations§
Source§impl NodeManagement
impl NodeManagement
Sourcepub fn set_auto_upgrade<T: Into<bool>>(self, v: T) -> Self
pub fn set_auto_upgrade<T: Into<bool>>(self, v: T) -> Self
Sets the value of auto_upgrade.
Sourcepub fn set_auto_repair<T: Into<bool>>(self, v: T) -> Self
pub fn set_auto_repair<T: Into<bool>>(self, v: T) -> Self
Sets the value of auto_repair.
Sourcepub fn set_upgrade_options<T: Into<Option<AutoUpgradeOptions>>>(
self,
v: T,
) -> Self
pub fn set_upgrade_options<T: Into<Option<AutoUpgradeOptions>>>( self, v: T, ) -> Self
Sets the value of upgrade_options.
Trait Implementations§
Source§impl Clone for NodeManagement
impl Clone for NodeManagement
Source§fn clone(&self) -> NodeManagement
fn clone(&self) -> NodeManagement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeManagement
impl Debug for NodeManagement
Source§impl Default for NodeManagement
impl Default for NodeManagement
Source§fn default() -> NodeManagement
fn default() -> NodeManagement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeManagementwhere
NodeManagement: Default,
impl<'de> Deserialize<'de> for NodeManagementwhere
NodeManagement: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Message for NodeManagement
impl Message for NodeManagement
Source§impl PartialEq for NodeManagement
impl PartialEq for NodeManagement
Source§impl Serialize for NodeManagement
impl Serialize for NodeManagement
impl StructuralPartialEq for NodeManagement
Auto Trait Implementations§
impl Freeze for NodeManagement
impl RefUnwindSafe for NodeManagement
impl Send for NodeManagement
impl Sync for NodeManagement
impl Unpin for NodeManagement
impl UnwindSafe for NodeManagement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more