Package io.fabric8.openshift.api.model
Class CommonSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.CommonSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CommonSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CommonSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<CommonSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
CommonSpec encapsulates all the inputs necessary to represent a build.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommonSpec()No args constructor for use in serializationCommonSpec(Long completionDeadlineSeconds, Boolean mountTrustedCA, Map<String,String> nodeSelector, BuildOutput output, BuildPostCommitSpec postCommit, io.fabric8.kubernetes.api.model.ResourceRequirements resources, SourceRevision revision, String serviceAccount, BuildSource source, BuildStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonSpecBuilderedit()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 integerBooleangetMountTrustedCA()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()CommonSpec encapsulates all the inputs necessary to represent a build.BuildPostCommitSpecgetPostCommit()CommonSpec encapsulates all the inputs necessary to represent a build.io.fabric8.kubernetes.api.model.ResourceRequirementsgetResources()CommonSpec encapsulates all the inputs necessary to represent a build.SourceRevisiongetRevision()CommonSpec encapsulates all the inputs necessary to represent a build.StringgetServiceAccount()serviceAccount is the name of the ServiceAccount to use to run the pod created by this build.BuildSourcegetSource()CommonSpec encapsulates all the inputs necessary to represent a build.BuildStrategygetStrategy()CommonSpec encapsulates all the inputs necessary to represent a build.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 integervoidsetMountTrustedCA(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)CommonSpec encapsulates all the inputs necessary to represent a build.voidsetPostCommit(BuildPostCommitSpec postCommit)CommonSpec encapsulates all the inputs necessary to represent a build.voidsetResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)CommonSpec encapsulates all the inputs necessary to represent a build.voidsetRevision(SourceRevision revision)CommonSpec encapsulates all the inputs necessary to represent a build.voidsetServiceAccount(String serviceAccount)serviceAccount is the name of the ServiceAccount to use to run the pod created by this build.voidsetSource(BuildSource source)CommonSpec encapsulates all the inputs necessary to represent a build.voidsetStrategy(BuildStrategy strategy)CommonSpec encapsulates all the inputs necessary to represent a build.CommonSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
CommonSpec
public CommonSpec()
No args constructor for use in serialization
-
CommonSpec
public CommonSpec(Long completionDeadlineSeconds, Boolean mountTrustedCA, Map<String,String> nodeSelector, BuildOutput output, BuildPostCommitSpec postCommit, io.fabric8.kubernetes.api.model.ResourceRequirements resources, SourceRevision revision, String serviceAccount, BuildSource source, BuildStrategy strategy)
-
-
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()
CommonSpec encapsulates all the inputs necessary to represent a build.
-
setOutput
public void setOutput(BuildOutput output)
CommonSpec encapsulates all the inputs necessary to represent a build.
-
getPostCommit
public BuildPostCommitSpec getPostCommit()
CommonSpec encapsulates all the inputs necessary to represent a build.
-
setPostCommit
public void setPostCommit(BuildPostCommitSpec postCommit)
CommonSpec encapsulates all the inputs necessary to represent a build.
-
getResources
public io.fabric8.kubernetes.api.model.ResourceRequirements getResources()
CommonSpec encapsulates all the inputs necessary to represent a build.
-
setResources
public void setResources(io.fabric8.kubernetes.api.model.ResourceRequirements resources)
CommonSpec encapsulates all the inputs necessary to represent a build.
-
getRevision
public SourceRevision getRevision()
CommonSpec encapsulates all the inputs necessary to represent a build.
-
setRevision
public void setRevision(SourceRevision revision)
CommonSpec encapsulates all the inputs necessary to represent 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()
CommonSpec encapsulates all the inputs necessary to represent a build.
-
setSource
public void setSource(BuildSource source)
CommonSpec encapsulates all the inputs necessary to represent a build.
-
getStrategy
public BuildStrategy getStrategy()
CommonSpec encapsulates all the inputs necessary to represent a build.
-
setStrategy
public void setStrategy(BuildStrategy strategy)
CommonSpec encapsulates all the inputs necessary to represent a build.
-
edit
public CommonSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CommonSpecBuilder>
-
toBuilder
public CommonSpecBuilder toBuilder()
-
-