Class BuildOverrides
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.BuildOverrides
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<BuildOverridesBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class BuildOverrides extends Object implements io.fabric8.kubernetes.api.builder.Editable<BuildOverridesBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildOverrides()No args constructor for use in serializationBuildOverrides(Boolean forcePull, List<ImageLabel> imageLabels, Map<String,String> nodeSelector, List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildOverridesBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetForcePull()forcePull overrides, if set, the equivalent value in the builds, i.e. false disables force pull for all builds, true enables force pull for all builds, independently of what each build specifies itselfList<ImageLabel>getImageLabels()imageLabels is a list of docker labels that are applied to the resulting image.Map<String,String>getNodeSelector()nodeSelector is a selector which must be true for the build pod to fit on a nodeList<io.fabric8.kubernetes.api.model.Toleration>getTolerations()tolerations is a list of Tolerations that will override any existing tolerations set on a build pod.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetForcePull(Boolean forcePull)forcePull overrides, if set, the equivalent value in the builds, i.e. false disables force pull for all builds, true enables force pull for all builds, independently of what each build specifies itselfvoidsetImageLabels(List<ImageLabel> imageLabels)imageLabels is a list of docker labels that are applied to the resulting image.voidsetNodeSelector(Map<String,String> nodeSelector)nodeSelector is a selector which must be true for the build pod to fit on a nodevoidsetTolerations(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)tolerations is a list of Tolerations that will override any existing tolerations set on a build pod.BuildOverridesBuildertoBuilder()
-
-
-
Method Detail
-
getForcePull
public Boolean getForcePull()
forcePull overrides, if set, the equivalent value in the builds, i.e. false disables force pull for all builds, true enables force pull for all builds, independently of what each build specifies itself
-
setForcePull
public void setForcePull(Boolean forcePull)
forcePull overrides, if set, the equivalent value in the builds, i.e. false disables force pull for all builds, true enables force pull for all builds, independently of what each build specifies itself
-
getImageLabels
public List<ImageLabel> getImageLabels()
imageLabels is a list of docker labels that are applied to the resulting image. If user provided a label in their Build/BuildConfig with the same name as one in this list, the user's label will be overwritten.
-
setImageLabels
public void setImageLabels(List<ImageLabel> imageLabels)
imageLabels is a list of docker labels that are applied to the resulting image. If user provided a label in their Build/BuildConfig with the same name as one in this list, the user's label will be overwritten.
-
getNodeSelector
public Map<String,String> getNodeSelector()
nodeSelector is a selector which must be true for the build pod to fit on a node
-
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
-
getTolerations
public List<io.fabric8.kubernetes.api.model.Toleration> getTolerations()
tolerations is a list of Tolerations that will override any existing tolerations set on a build pod.
-
setTolerations
public void setTolerations(List<io.fabric8.kubernetes.api.model.Toleration> tolerations)
tolerations is a list of Tolerations that will override any existing tolerations set on a build pod.
-
edit
public BuildOverridesBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<BuildOverridesBuilder>
-
toBuilder
public BuildOverridesBuilder toBuilder()
-
-