#[non_exhaustive]pub struct NodeConfigDefaults {
pub gcfs_config: Option<GcfsConfig>,
pub logging_config: Option<NodePoolLoggingConfig>,
pub containerd_config: Option<ContainerdConfig>,
pub node_kubelet_config: Option<NodeKubeletConfig>,
/* private fields */
}Expand description
Subset of NodeConfig message that has defaults.
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.gcfs_config: Option<GcfsConfig>GCFS (Google Container File System, also known as Riptide) options.
logging_config: Option<NodePoolLoggingConfig>Logging configuration for node pools.
containerd_config: Option<ContainerdConfig>Parameters for containerd customization.
node_kubelet_config: Option<NodeKubeletConfig>NodeKubeletConfig controls the defaults for new node-pools.
Currently only insecure_kubelet_readonly_port_enabled can be set here.
Implementations§
Source§impl NodeConfigDefaults
impl NodeConfigDefaults
pub fn new() -> Self
Sourcepub fn set_gcfs_config<T>(self, v: T) -> Selfwhere
T: Into<GcfsConfig>,
pub fn set_gcfs_config<T>(self, v: T) -> Selfwhere
T: Into<GcfsConfig>,
Sets the value of gcfs_config.
Sourcepub fn set_or_clear_gcfs_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcfsConfig>,
pub fn set_or_clear_gcfs_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcfsConfig>,
Sets or clears the value of gcfs_config.
Sourcepub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
pub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
Sets the value of logging_config.
Sourcepub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
pub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
Sets or clears the value of logging_config.
Sourcepub fn set_containerd_config<T>(self, v: T) -> Selfwhere
T: Into<ContainerdConfig>,
pub fn set_containerd_config<T>(self, v: T) -> Selfwhere
T: Into<ContainerdConfig>,
Sets the value of containerd_config.
Sourcepub fn set_or_clear_containerd_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerdConfig>,
pub fn set_or_clear_containerd_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerdConfig>,
Sets or clears the value of containerd_config.
Sourcepub fn set_node_kubelet_config<T>(self, v: T) -> Selfwhere
T: Into<NodeKubeletConfig>,
pub fn set_node_kubelet_config<T>(self, v: T) -> Selfwhere
T: Into<NodeKubeletConfig>,
Sets the value of node_kubelet_config.
Sourcepub fn set_or_clear_node_kubelet_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeKubeletConfig>,
pub fn set_or_clear_node_kubelet_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeKubeletConfig>,
Sets or clears the value of node_kubelet_config.
Trait Implementations§
Source§impl Clone for NodeConfigDefaults
impl Clone for NodeConfigDefaults
Source§fn clone(&self) -> NodeConfigDefaults
fn clone(&self) -> NodeConfigDefaults
Returns a duplicate 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 NodeConfigDefaults
impl Debug for NodeConfigDefaults
Source§impl Default for NodeConfigDefaults
impl Default for NodeConfigDefaults
Source§fn default() -> NodeConfigDefaults
fn default() -> NodeConfigDefaults
Returns the “default value” for a type. Read more
Source§impl Message for NodeConfigDefaults
impl Message for NodeConfigDefaults
Source§impl PartialEq for NodeConfigDefaults
impl PartialEq for NodeConfigDefaults
impl StructuralPartialEq for NodeConfigDefaults
Auto Trait Implementations§
impl Freeze for NodeConfigDefaults
impl RefUnwindSafe for NodeConfigDefaults
impl Send for NodeConfigDefaults
impl Sync for NodeConfigDefaults
impl Unpin for NodeConfigDefaults
impl UnwindSafe for NodeConfigDefaults
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