pub struct ConfigMapNodeConfigSource {
pub namespace: Option<String>,
pub name: Option<String>,
pub uid: Option<String>,
pub resource_version: Option<String>,
pub kubelet_config_key: Option<String>,
}
Expand description
ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
Fields§
§namespace: Option<String>
Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.
name: Option<String>
Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.
uid: Option<String>
UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. +optional
resource_version: Option<String>
ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. +optional
kubelet_config_key: Option<String>
KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.
Implementations§
Source§impl ConfigMapNodeConfigSource
impl ConfigMapNodeConfigSource
Sourcepub fn namespace(&self) -> &str
pub fn namespace(&self) -> &str
Returns the value of namespace
, or the default value if namespace
is unset.
Sourcepub fn resource_version(&self) -> &str
pub fn resource_version(&self) -> &str
Returns the value of resource_version
, or the default value if resource_version
is unset.
Sourcepub fn kubelet_config_key(&self) -> &str
pub fn kubelet_config_key(&self) -> &str
Returns the value of kubelet_config_key
, or the default value if kubelet_config_key
is unset.
Trait Implementations§
Source§impl Clone for ConfigMapNodeConfigSource
impl Clone for ConfigMapNodeConfigSource
Source§fn clone(&self) -> ConfigMapNodeConfigSource
fn clone(&self) -> ConfigMapNodeConfigSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ConfigMapNodeConfigSource
impl Debug for ConfigMapNodeConfigSource
Source§impl Default for ConfigMapNodeConfigSource
impl Default for ConfigMapNodeConfigSource
Source§impl Hash for ConfigMapNodeConfigSource
impl Hash for ConfigMapNodeConfigSource
Source§impl Message for ConfigMapNodeConfigSource
impl Message for ConfigMapNodeConfigSource
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.