pub struct SecretBuildSource {
pub destination_dir: Option<String>,
pub secret: LocalObjectReference,
}
Expand description
SecretBuildSource describes a secret and its destination directory that will be used only at the build time. The content of the secret referenced here will be copied into the destination directory instead of mounting.
Fields§
§destination_dir: Option<String>
destinationDir is the directory where the files from the secret should be available for the build time. For the Source build strategy, these will be injected into a container where the assemble script runs. Later, when the script finishes, all files injected will be truncated to zero length. For the container image build strategy, these will be copied into the build directory, where the Dockerfile is located, so users can ADD or COPY them during container image build.
secret: LocalObjectReference
secret is a reference to an existing secret that you want to use in your build.
Trait Implementations§
Source§impl Clone for SecretBuildSource
impl Clone for SecretBuildSource
Source§fn clone(&self) -> SecretBuildSource
fn clone(&self) -> SecretBuildSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more