Class MachineSetSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.MachineSetSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachineSetSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachineSetSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachineSetSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachineSetSpec defines the desired state of MachineSet- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachineSetSpec()No args constructor for use in serializationMachineSetSpec(String authoritativeAPI, String deletePolicy, Integer minReadySeconds, Integer replicas, io.fabric8.kubernetes.api.model.LabelSelector selector, MachineTemplateSpec template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachineSetSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAuthoritativeAPI()authoritativeAPI is the API that is authoritative for this resource.StringgetDeletePolicy()deletePolicy defines the policy used to identify nodes to delete when downscaling.IntegergetMinReadySeconds()minReadySeconds is the minimum number of seconds for which a newly created machine should be ready.IntegergetReplicas()replicas is the number of desired replicas.io.fabric8.kubernetes.api.model.LabelSelectorgetSelector()MachineSetSpec defines the desired state of MachineSetMachineTemplateSpecgetTemplate()MachineSetSpec defines the desired state of MachineSetvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthoritativeAPI(String authoritativeAPI)authoritativeAPI is the API that is authoritative for this resource.voidsetDeletePolicy(String deletePolicy)deletePolicy defines the policy used to identify nodes to delete when downscaling.voidsetMinReadySeconds(Integer minReadySeconds)minReadySeconds is the minimum number of seconds for which a newly created machine should be ready.voidsetReplicas(Integer replicas)replicas is the number of desired replicas.voidsetSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)MachineSetSpec defines the desired state of MachineSetvoidsetTemplate(MachineTemplateSpec template)MachineSetSpec defines the desired state of MachineSetMachineSetSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
MachineSetSpec
public MachineSetSpec()
No args constructor for use in serialization
-
MachineSetSpec
public MachineSetSpec(String authoritativeAPI, String deletePolicy, Integer minReadySeconds, Integer replicas, io.fabric8.kubernetes.api.model.LabelSelector selector, MachineTemplateSpec template)
-
-
Method Detail
-
getAuthoritativeAPI
public String getAuthoritativeAPI()
authoritativeAPI is the API that is authoritative for this resource. Valid values are MachineAPI and ClusterAPI. When set to MachineAPI, writes to the spec of the machine.openshift.io copy of this resource will be reflected into the cluster.x-k8s.io copy. When set to ClusterAPI, writes to the spec of the cluster.x-k8s.io copy of this resource will be reflected into the machine.openshift.io copy. Updates to the status will be reflected in both copies of the resource, based on the controller implementing the functionality of the API. Currently the authoritative API determines which controller will manage the resource, this will change in a future release. To ensure the change has been accepted, please verify that the `status.authoritativeAPI` field has been updated to the desired value and that the `Synchronized` condition is present and set to `True`.
-
setAuthoritativeAPI
public void setAuthoritativeAPI(String authoritativeAPI)
authoritativeAPI is the API that is authoritative for this resource. Valid values are MachineAPI and ClusterAPI. When set to MachineAPI, writes to the spec of the machine.openshift.io copy of this resource will be reflected into the cluster.x-k8s.io copy. When set to ClusterAPI, writes to the spec of the cluster.x-k8s.io copy of this resource will be reflected into the machine.openshift.io copy. Updates to the status will be reflected in both copies of the resource, based on the controller implementing the functionality of the API. Currently the authoritative API determines which controller will manage the resource, this will change in a future release. To ensure the change has been accepted, please verify that the `status.authoritativeAPI` field has been updated to the desired value and that the `Synchronized` condition is present and set to `True`.
-
getDeletePolicy
public String getDeletePolicy()
deletePolicy defines the policy used to identify nodes to delete when downscaling. Defaults to "Random". Valid values are "Random, "Newest", "Oldest"
-
setDeletePolicy
public void setDeletePolicy(String deletePolicy)
deletePolicy defines the policy used to identify nodes to delete when downscaling. Defaults to "Random". Valid values are "Random, "Newest", "Oldest"
-
getMinReadySeconds
public Integer getMinReadySeconds()
minReadySeconds is the minimum number of seconds for which a newly created machine should be ready. Defaults to 0 (machine will be considered available as soon as it is ready)
-
setMinReadySeconds
public void setMinReadySeconds(Integer minReadySeconds)
minReadySeconds is the minimum number of seconds for which a newly created machine should be ready. Defaults to 0 (machine will be considered available as soon as it is ready)
-
getReplicas
public Integer getReplicas()
replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1.
-
setReplicas
public void setReplicas(Integer replicas)
replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1.
-
getSelector
public io.fabric8.kubernetes.api.model.LabelSelector getSelector()
MachineSetSpec defines the desired state of MachineSet
-
setSelector
public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
MachineSetSpec defines the desired state of MachineSet
-
getTemplate
public MachineTemplateSpec getTemplate()
MachineSetSpec defines the desired state of MachineSet
-
setTemplate
public void setTemplate(MachineTemplateSpec template)
MachineSetSpec defines the desired state of MachineSet
-
edit
public MachineSetSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachineSetSpecBuilder>
-
toBuilder
public MachineSetSpecBuilder toBuilder()
-
-