#[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>,
}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
Sourcepub fn set_gcfs_config<T: Into<Option<GcfsConfig>>>(self, v: T) -> Self
pub fn set_gcfs_config<T: Into<Option<GcfsConfig>>>(self, v: T) -> Self
Sets the value of gcfs_config.
Sourcepub fn set_logging_config<T: Into<Option<NodePoolLoggingConfig>>>(
self,
v: T,
) -> Self
pub fn set_logging_config<T: Into<Option<NodePoolLoggingConfig>>>( self, v: T, ) -> Self
Sets the value of logging_config.
Sourcepub fn set_containerd_config<T: Into<Option<ContainerdConfig>>>(
self,
v: T,
) -> Self
pub fn set_containerd_config<T: Into<Option<ContainerdConfig>>>( self, v: T, ) -> Self
Sets the value of containerd_config.
Sourcepub fn set_node_kubelet_config<T: Into<Option<NodeKubeletConfig>>>(
self,
v: T,
) -> Self
pub fn set_node_kubelet_config<T: Into<Option<NodeKubeletConfig>>>( self, v: T, ) -> Self
Sets 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 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 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<'de> Deserialize<'de> for NodeConfigDefaultswhere
NodeConfigDefaults: Default,
impl<'de> Deserialize<'de> for NodeConfigDefaultswhere
NodeConfigDefaults: 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 NodeConfigDefaults
impl Message for NodeConfigDefaults
Source§impl PartialEq for NodeConfigDefaults
impl PartialEq for NodeConfigDefaults
Source§impl Serialize for NodeConfigDefaults
impl Serialize 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