Package io.fabric8.openshift.api.model
Class BuildConfigSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.BuildConfigSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<BuildConfigSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class BuildConfigSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<BuildConfigSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
BuildConfigSpec describes when and how builds are created- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildConfigSpec()No args constructor for use in serializationBuildConfigSpec(Long completionDeadlineSeconds, Integer failedBuildsHistoryLimit, Boolean mountTrustedCA, Map<String,String> nodeSelector, BuildOutput output, BuildPostCommitSpec postCommit, io.fabric8.kubernetes.api.model.ResourceRequirements resources, SourceRevision revision, String runPolicy, String serviceAccount, BuildSource source, BuildStrategy strategy, Integer successfulBuildsHistoryLimit, List<BuildTriggerPolicy> triggers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildConfigSpecBuilderedit()Map<String,Object>getAdditionalProperties()LonggetCompletionDeadlineSeconds()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 integerIntegergetFailedBuildsHistoryLimit()failedBuildsHistoryLimit is the number of old failed builds to retain.BooleangetMountTrustedCA()mountTrustedCA bind mounts the cluster's trusted certificate authorities, as defined in the cluster's proxy configuration, into the build.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.BuildOutputgetOutput()BuildConfigSpec describes when and how builds are createdBuildPostCommitSpecgetPostCommit()BuildConfigSpec describes when and how builds are createdio.fabric8.kubernetes.api.model.ResourceRequirementsgetResources()BuildConfigSpec describes when and how builds are createdSourceRevisiongetRevision()BuildConfigSpec describes when and how builds are createdStringgetRunPolicy()runPolicy describes how the new build created from this build configuration will be scheduled for execution.StringgetServiceAccount()serviceAccount is the name of the ServiceAccount to use to run the pod created by this build.BuildSourcegetSource()BuildConfigSpec describes when and how builds are createdBuildStrategygetStrategy()BuildConfigSpec describes when and how builds are createdIntegergetSuccessfulBuildsHistoryLimit()successfulBuildsHistoryLimit is the number of old successful builds to retain.List<BuildTriggerPolicy>getTriggers()triggers determine how new Builds can be launched from a BuildConfig.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCompletionDeadlineSeconds(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 integervoidsetFailedBuildsHistoryLimit(Integer failedBuildsHistoryLimit)failedBuildsHistoryLimit is the number of old failed builds to retain.voidsetMountTrustedCA(Boolean mountTrustedCA)mountTrustedCA bind mounts the cluster's trusted certificate authorities, as defined in the cluster's proxy configuration, into the build.voidsetNodeSelector(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.voidsetOutput(BuildOutput output)BuildConfigSpec describes when and how builds are createdvoidsetPostCommit(BuildPostCommitSpec postCommit)BuildConfigSpec describes when and how builds are createdvoidsetResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)BuildConfigSpec describes when and how builds are createdvoidsetRevision(SourceRevision revision)BuildConfigSpec describes when and how builds are createdvoidsetRunPolicy(String runPolicy)runPolicy describes how the new build created from this build configuration will be scheduled for execution.voidsetServiceAccount(String serviceAccount)serviceAccount is the name of the ServiceAccount to use to run the pod created by this build.voidsetSource(BuildSource source)BuildConfigSpec describes when and how builds are createdvoidsetStrategy(BuildStrategy strategy)BuildConfigSpec describes when and how builds are createdvoidsetSuccessfulBuildsHistoryLimit(Integer successfulBuildsHistoryLimit)successfulBuildsHistoryLimit is the number of old successful builds to retain.voidsetTriggers(List<BuildTriggerPolicy> triggers)triggers determine how new Builds can be launched from a BuildConfig.BuildConfigSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
BuildConfigSpec
public BuildConfigSpec()
No args constructor for use in serialization
-
BuildConfigSpec
public BuildConfigSpec(Long completionDeadlineSeconds, Integer failedBuildsHistoryLimit, Boolean mountTrustedCA, Map<String,String> nodeSelector, BuildOutput output, BuildPostCommitSpec postCommit, io.fabric8.kubernetes.api.model.ResourceRequirements resources, SourceRevision revision, String runPolicy, String serviceAccount, BuildSource source, BuildStrategy strategy, Integer successfulBuildsHistoryLimit, List<BuildTriggerPolicy> triggers)
-
-
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
-
getFailedBuildsHistoryLimit
public Integer getFailedBuildsHistoryLimit()
failedBuildsHistoryLimit is the number of old failed builds to retain. When a BuildConfig is created, the 5 most recent failed builds are retained unless this value is set. If removed after the BuildConfig has been created, all failed builds are retained.
-
setFailedBuildsHistoryLimit
public void setFailedBuildsHistoryLimit(Integer failedBuildsHistoryLimit)
failedBuildsHistoryLimit is the number of old failed builds to retain. When a BuildConfig is created, the 5 most recent failed builds are retained unless this value is set. If removed after the BuildConfig has been created, all failed builds are retained.
-
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()
BuildConfigSpec describes when and how builds are created
-
setOutput
public void setOutput(BuildOutput output)
BuildConfigSpec describes when and how builds are created
-
getPostCommit
public BuildPostCommitSpec getPostCommit()
BuildConfigSpec describes when and how builds are created
-
setPostCommit
public void setPostCommit(BuildPostCommitSpec postCommit)
BuildConfigSpec describes when and how builds are created
-
getResources
public io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
BuildConfigSpec describes when and how builds are created
-
setResources
public void setResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
BuildConfigSpec describes when and how builds are created
-
getRevision
public SourceRevision getRevision()
BuildConfigSpec describes when and how builds are created
-
setRevision
public void setRevision(SourceRevision revision)
BuildConfigSpec describes when and how builds are created
-
getRunPolicy
public String getRunPolicy()
runPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to "Serial".
-
setRunPolicy
public void setRunPolicy(String runPolicy)
runPolicy describes how the new build created from this build configuration will be scheduled for execution. This is optional, if not specified we default to "Serial".
-
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()
BuildConfigSpec describes when and how builds are created
-
setSource
public void setSource(BuildSource source)
BuildConfigSpec describes when and how builds are created
-
getStrategy
public BuildStrategy getStrategy()
BuildConfigSpec describes when and how builds are created
-
setStrategy
public void setStrategy(BuildStrategy strategy)
BuildConfigSpec describes when and how builds are created
-
getSuccessfulBuildsHistoryLimit
public Integer getSuccessfulBuildsHistoryLimit()
successfulBuildsHistoryLimit is the number of old successful builds to retain. When a BuildConfig is created, the 5 most recent successful builds are retained unless this value is set. If removed after the BuildConfig has been created, all successful builds are retained.
-
setSuccessfulBuildsHistoryLimit
public void setSuccessfulBuildsHistoryLimit(Integer successfulBuildsHistoryLimit)
successfulBuildsHistoryLimit is the number of old successful builds to retain. When a BuildConfig is created, the 5 most recent successful builds are retained unless this value is set. If removed after the BuildConfig has been created, all successful builds are retained.
-
getTriggers
public List<BuildTriggerPolicy> getTriggers()
triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation.
-
setTriggers
public void setTriggers(List<BuildTriggerPolicy> triggers)
triggers determine how new Builds can be launched from a BuildConfig. If no triggers are defined, a new build can only occur as a result of an explicit client build creation.
-
edit
public BuildConfigSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<BuildConfigSpecBuilder>
-
toBuilder
public BuildConfigSpecBuilder toBuilder()
-
-