pub struct ClusterAgentEnvVarsValueFromFileKeyRef {
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 ClusterAgentEnvVarsValueFromFileKeyRef
impl Clone for ClusterAgentEnvVarsValueFromFileKeyRef
Source§fn clone(&self) -> ClusterAgentEnvVarsValueFromFileKeyRef
fn clone(&self) -> ClusterAgentEnvVarsValueFromFileKeyRef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterAgentEnvVarsValueFromFileKeyRef
impl Default for ClusterAgentEnvVarsValueFromFileKeyRef
Source§fn default() -> ClusterAgentEnvVarsValueFromFileKeyRef
fn default() -> ClusterAgentEnvVarsValueFromFileKeyRef
Source§impl<'de> Deserialize<'de> for ClusterAgentEnvVarsValueFromFileKeyRef
impl<'de> Deserialize<'de> for ClusterAgentEnvVarsValueFromFileKeyRef
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 JsonSchema for ClusterAgentEnvVarsValueFromFileKeyRef
impl JsonSchema for ClusterAgentEnvVarsValueFromFileKeyRef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ClusterAgentEnvVarsValueFromFileKeyRef
impl PartialEq for ClusterAgentEnvVarsValueFromFileKeyRef
Source§fn eq(&self, other: &ClusterAgentEnvVarsValueFromFileKeyRef) -> bool
fn eq(&self, other: &ClusterAgentEnvVarsValueFromFileKeyRef) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterAgentEnvVarsValueFromFileKeyRef
Auto Trait Implementations§
impl Freeze for ClusterAgentEnvVarsValueFromFileKeyRef
impl RefUnwindSafe for ClusterAgentEnvVarsValueFromFileKeyRef
impl Send for ClusterAgentEnvVarsValueFromFileKeyRef
impl Sync for ClusterAgentEnvVarsValueFromFileKeyRef
impl Unpin for ClusterAgentEnvVarsValueFromFileKeyRef
impl UnwindSafe for ClusterAgentEnvVarsValueFromFileKeyRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more