Package io.fabric8.openshift.api.model
Class SecretBuildSource
- java.lang.Object
-
- io.fabric8.openshift.api.model.SecretBuildSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SecretBuildSourceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SecretBuildSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<SecretBuildSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecretBuildSource()No args constructor for use in serializationSecretBuildSource(String destinationDir, io.fabric8.kubernetes.api.model.LocalObjectReference secret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretBuildSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDestinationDir()destinationDir is the directory where the files from the secret should be available for the build time.io.fabric8.kubernetes.api.model.LocalObjectReferencegetSecret()SecretBuildSource describes a secret and its destination directory that will be used only at the build time.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDestinationDir(String destinationDir)destinationDir is the directory where the files from the secret should be available for the build time.voidsetSecret(io.fabric8.kubernetes.api.model.LocalObjectReference secret)SecretBuildSource describes a secret and its destination directory that will be used only at the build time.SecretBuildSourceBuildertoBuilder()
-
-
-
Constructor Detail
-
SecretBuildSource
public SecretBuildSource()
No args constructor for use in serialization
-
SecretBuildSource
public SecretBuildSource(String destinationDir, io.fabric8.kubernetes.api.model.LocalObjectReference secret)
-
-
Method Detail
-
getDestinationDir
public String getDestinationDir()
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.
-
setDestinationDir
public void setDestinationDir(String destinationDir)
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.
-
getSecret
public io.fabric8.kubernetes.api.model.LocalObjectReference getSecret()
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.
-
setSecret
public void setSecret(io.fabric8.kubernetes.api.model.LocalObjectReference secret)
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.
-
edit
public SecretBuildSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SecretBuildSourceBuilder>
-
toBuilder
public SecretBuildSourceBuilder toBuilder()
-
-