Class BuildSpec

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<BuildSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class BuildSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<BuildSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    BuildSpec has the information to represent a build and also additional information about a build
    See Also:
    Serialized Form
    • Method Detail

      • getCompletionDeadlineSeconds

        public Long getCompletionDeadlineSeconds()
        completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer
      • setCompletionDeadlineSeconds

        public void setCompletionDeadlineSeconds​(Long completionDeadlineSeconds)
        completionDeadlineSeconds is an optional duration in seconds, counted from the time when a build pod gets scheduled in the system, that the build may be active on a node before the system actively tries to terminate the build; value must be positive integer
      • getMountTrustedCA

        public Boolean getMountTrustedCA()
        mountTrustedCA bind mounts the cluster's trusted certificate authorities, as defined in the cluster's proxy configuration, into the build. This lets processes within a build trust components signed by custom PKI certificate authorities, such as private artifact repositories and HTTPS proxies.


        When this field is set to true, the contents of `/etc/pki/ca-trust` within the build are managed by the build container, and any changes to this directory or its subdirectories (for example - within a Dockerfile `RUN` instruction) are not persisted in the build's output image.

      • setMountTrustedCA

        public void setMountTrustedCA​(Boolean mountTrustedCA)
        mountTrustedCA bind mounts the cluster's trusted certificate authorities, as defined in the cluster's proxy configuration, into the build. This lets processes within a build trust components signed by custom PKI certificate authorities, such as private artifact repositories and HTTPS proxies.


        When this field is set to true, the contents of `/etc/pki/ca-trust` within the build are managed by the build container, and any changes to this directory or its subdirectories (for example - within a Dockerfile `RUN` instruction) are not persisted in the build's output image.

      • getNodeSelector

        public Map<String,​String> getNodeSelector()
        nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored.
      • setNodeSelector

        public void setNodeSelector​(Map<String,​String> nodeSelector)
        nodeSelector is a selector which must be true for the build pod to fit on a node If nil, it can be overridden by default build nodeselector values for the cluster. If set to an empty map or a map with any values, default build nodeselector values are ignored.
      • getOutput

        public BuildOutput getOutput()
        BuildSpec has the information to represent a build and also additional information about a build
      • setOutput

        public void setOutput​(BuildOutput output)
        BuildSpec has the information to represent a build and also additional information about a build
      • getPostCommit

        public BuildPostCommitSpec getPostCommit()
        BuildSpec has the information to represent a build and also additional information about a build
      • setPostCommit

        public void setPostCommit​(BuildPostCommitSpec postCommit)
        BuildSpec has the information to represent a build and also additional information about a build
      • getResources

        public io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
        BuildSpec has the information to represent a build and also additional information about a build
      • setResources

        public void setResources​(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
        BuildSpec has the information to represent a build and also additional information about a build
      • getRevision

        public SourceRevision getRevision()
        BuildSpec has the information to represent a build and also additional information about a build
      • setRevision

        public void setRevision​(SourceRevision revision)
        BuildSpec has the information to represent a build and also additional information about a build
      • getServiceAccount

        public String getServiceAccount()
        serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount
      • setServiceAccount

        public void setServiceAccount​(String serviceAccount)
        serviceAccount is the name of the ServiceAccount to use to run the pod created by this build. The pod will be allowed to use secrets referenced by the ServiceAccount
      • getSource

        public BuildSource getSource()
        BuildSpec has the information to represent a build and also additional information about a build
      • setSource

        public void setSource​(BuildSource source)
        BuildSpec has the information to represent a build and also additional information about a build
      • getStrategy

        public BuildStrategy getStrategy()
        BuildSpec has the information to represent a build and also additional information about a build
      • setStrategy

        public void setStrategy​(BuildStrategy strategy)
        BuildSpec has the information to represent a build and also additional information about a build
      • getTriggeredBy

        public List<BuildTriggerCause> getTriggeredBy()
        triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.
      • setTriggeredBy

        public void setTriggeredBy​(List<BuildTriggerCause> triggeredBy)
        triggeredBy describes which triggers started the most recent update to the build configuration and contains information about those triggers.
      • getAdditionalProperties

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

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

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