#[repr(i32)]pub enum NodeMetadata {
Unspecified = 0,
Secure = 1,
Expose = 2,
GkeMetadataServer = 3,
}
Expand description
NodeMetadata is the configuration for if and how to expose the node metadata to the workload running on the node.
Variants§
Unspecified = 0
Not set.
Secure = 1
Prevent workloads not in hostNetwork from accessing certain VM metadata, specifically kube-env, which contains Kubelet credentials, and the instance identity token.
Metadata concealment is a temporary security solution available while the bootstrapping process for cluster nodes is being redesigned with significant security improvements. This feature is scheduled to be deprecated in the future and later removed.
Expose = 2
Expose all VM metadata to pods.
GkeMetadataServer = 3
Run the GKE Metadata Server on this node. The GKE Metadata Server exposes a metadata API to workloads that is compatible with the V1 Compute Metadata APIs exposed by the Compute Engine and App Engine Metadata Servers. This feature can only be enabled if Workload Identity is enabled at the cluster level.
Implementations§
source§impl NodeMetadata
impl NodeMetadata
source§impl NodeMetadata
impl NodeMetadata
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for NodeMetadata
impl Clone for NodeMetadata
source§fn clone(&self) -> NodeMetadata
fn clone(&self) -> NodeMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NodeMetadata
impl Debug for NodeMetadata
source§impl Default for NodeMetadata
impl Default for NodeMetadata
source§fn default() -> NodeMetadata
fn default() -> NodeMetadata
source§impl From<NodeMetadata> for i32
impl From<NodeMetadata> for i32
source§fn from(value: NodeMetadata) -> i32
fn from(value: NodeMetadata) -> i32
source§impl Hash for NodeMetadata
impl Hash for NodeMetadata
source§impl Ord for NodeMetadata
impl Ord for NodeMetadata
source§fn cmp(&self, other: &NodeMetadata) -> Ordering
fn cmp(&self, other: &NodeMetadata) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for NodeMetadata
impl PartialEq for NodeMetadata
source§fn eq(&self, other: &NodeMetadata) -> bool
fn eq(&self, other: &NodeMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NodeMetadata
impl PartialOrd for NodeMetadata
source§fn partial_cmp(&self, other: &NodeMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeMetadata) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for NodeMetadata
impl TryFrom<i32> for NodeMetadata
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<NodeMetadata, UnknownEnumValue>
fn try_from(value: i32) -> Result<NodeMetadata, UnknownEnumValue>
impl Copy for NodeMetadata
impl Eq for NodeMetadata
impl StructuralPartialEq for NodeMetadata
Auto Trait Implementations§
impl Freeze for NodeMetadata
impl RefUnwindSafe for NodeMetadata
impl Send for NodeMetadata
impl Sync for NodeMetadata
impl Unpin for NodeMetadata
impl UnwindSafe for NodeMetadata
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request