[][src]Struct k8s_openapi::api::core::v1::EnvVarSource

pub struct EnvVarSource {
    pub config_map_key_ref: Option<ConfigMapKeySelector>,
    pub field_ref: Option<ObjectFieldSelector>,
    pub resource_field_ref: Option<ResourceFieldSelector>,
    pub secret_key_ref: Option<SecretKeySelector>,
}

EnvVarSource represents a source for the value of an EnvVar.

Fields

config_map_key_ref: Option<ConfigMapKeySelector>

Selects a key of a ConfigMap.

field_ref: Option<ObjectFieldSelector>

Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels\['\<KEY\>'\], metadata.annotations\['\<KEY\>'\], spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.

resource_field_ref: Option<ResourceFieldSelector>

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.

secret_key_ref: Option<SecretKeySelector>

Selects a key of a secret in the pod's namespace

Trait Implementations

impl Clone for EnvVarSource[src]

impl Debug for EnvVarSource[src]

impl Default for EnvVarSource[src]

impl<'de> Deserialize<'de> for EnvVarSource[src]

impl PartialEq<EnvVarSource> for EnvVarSource[src]

impl Serialize for EnvVarSource[src]

impl StructuralPartialEq for EnvVarSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.