Class 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 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)