pub trait SecretEnvSourceExt: Sized {
    fn secret_name(name: impl ToString) -> Self;
    fn optional(self, yes: bool) -> Self;

    fn required(self) -> Self { ... }
}
Expand description

Builders for corev1::SecretEnvSource objects

Required Methods

Constructs corev1::SecretEnvSource object from secret of this name

Specifies whether the Secret must be defined

Provided Methods

Marks this Secret as required (equivalent to calling .optional(false))

Implementors