pub struct FileKeySelector {
pub key: String,
pub optional: Option<bool>,
pub path: String,
pub volume_name: String,
}
Expand description
FileKeySelector selects a key of the env file.
Fields§
§key: String
The 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: String
The path within the volume from which to select the file. Must be relative and may not contain the ‘..’ path or start with ‘..’.
volume_name: String
The name of the volume mount containing the env file.
Trait Implementations§
Source§impl Clone for FileKeySelector
impl Clone for FileKeySelector
Source§fn clone(&self) -> FileKeySelector
fn clone(&self) -> FileKeySelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileKeySelector
impl Debug for FileKeySelector
Source§impl DeepMerge for FileKeySelector
impl DeepMerge for FileKeySelector
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.