pub struct RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef {
pub key: String,
pub optional: Option<bool>,
pub path: String,
pub volume_name: String,
}Expand description
FileKeyRef selects a key of the env file. Requires the EnvFiles feature gate to be enabled.
Fields§
§key: StringThe key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except ‘=’. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
optional: Option<bool>Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod’s containers.
If optional is set to false and the specified key does not exist, an error will be returned during Pod creation.
path: StringThe path within the volume from which to select the file. Must be relative and may not contain the ‘..’ path or start with ‘..’.
volume_name: StringThe name of the volume mount containing the env file.
Trait Implementations§
Source§impl Clone for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
impl Clone for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
Source§fn clone(
&self,
) -> RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
fn clone( &self, ) -> RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
impl Default for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
Source§fn default() -> RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
fn default() -> RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
Source§impl<'de> Deserialize<'de> for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
impl<'de> Deserialize<'de> for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
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>,
Source§impl PartialEq for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
impl PartialEq for RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef
Source§fn eq(
&self,
other: &RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef,
) -> bool
fn eq( &self, other: &RunnerReplicaSetTemplateSpecSidecarContainersEnvValueFromFileKeyRef, ) -> bool
self and other values to be equal, and is used by ==.