Class ControlPlaneMachineSetSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1.ControlPlaneMachineSetSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ControlPlaneMachineSetSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ControlPlaneMachineSetSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ControlPlaneMachineSetSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ControlPlaneMachineSetSpec()No args constructor for use in serializationControlPlaneMachineSetSpec(Integer replicas, io.fabric8.kubernetes.api.model.LabelSelector selector, String state, ControlPlaneMachineSetStrategy strategy, ControlPlaneMachineSetTemplate template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControlPlaneMachineSetSpecBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetReplicas()Replicas defines how many Control Plane Machines should be created by this ControlPlaneMachineSet.io.fabric8.kubernetes.api.model.LabelSelectorgetSelector()ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.StringgetState()State defines whether the ControlPlaneMachineSet is Active or Inactive.ControlPlaneMachineSetStrategygetStrategy()ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.ControlPlaneMachineSetTemplategetTemplate()ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetReplicas(Integer replicas)Replicas defines how many Control Plane Machines should be created by this ControlPlaneMachineSet.voidsetSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.voidsetState(String state)State defines whether the ControlPlaneMachineSet is Active or Inactive.voidsetStrategy(ControlPlaneMachineSetStrategy strategy)ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.voidsetTemplate(ControlPlaneMachineSetTemplate template)ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.ControlPlaneMachineSetSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ControlPlaneMachineSetSpec
public ControlPlaneMachineSetSpec()
No args constructor for use in serialization
-
ControlPlaneMachineSetSpec
public ControlPlaneMachineSetSpec(Integer replicas, io.fabric8.kubernetes.api.model.LabelSelector selector, String state, ControlPlaneMachineSetStrategy strategy, ControlPlaneMachineSetTemplate template)
-
-
Method Detail
-
getReplicas
public Integer getReplicas()
Replicas defines how many Control Plane Machines should be created by this ControlPlaneMachineSet. This field is immutable and cannot be changed after cluster installation. The ControlPlaneMachineSet only operates with 3 or 5 node control planes, 3 and 5 are the only valid values for this field.
-
setReplicas
public void setReplicas(Integer replicas)
Replicas defines how many Control Plane Machines should be created by this ControlPlaneMachineSet. This field is immutable and cannot be changed after cluster installation. The ControlPlaneMachineSet only operates with 3 or 5 node control planes, 3 and 5 are the only valid values for this field.
-
getSelector
public io.fabric8.kubernetes.api.model.LabelSelector getSelector()
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.
-
setSelector
public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector)
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.
-
getState
public String getState()
State defines whether the ControlPlaneMachineSet is Active or Inactive. When Inactive, the ControlPlaneMachineSet will not take any action on the state of the Machines within the cluster. When Active, the ControlPlaneMachineSet will reconcile the Machines and will update the Machines as necessary. Once Active, a ControlPlaneMachineSet cannot be made Inactive. To prevent further action please remove the ControlPlaneMachineSet.
-
setState
public void setState(String state)
State defines whether the ControlPlaneMachineSet is Active or Inactive. When Inactive, the ControlPlaneMachineSet will not take any action on the state of the Machines within the cluster. When Active, the ControlPlaneMachineSet will reconcile the Machines and will update the Machines as necessary. Once Active, a ControlPlaneMachineSet cannot be made Inactive. To prevent further action please remove the ControlPlaneMachineSet.
-
getStrategy
public ControlPlaneMachineSetStrategy getStrategy()
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.
-
setStrategy
public void setStrategy(ControlPlaneMachineSetStrategy strategy)
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.
-
getTemplate
public ControlPlaneMachineSetTemplate getTemplate()
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.
-
setTemplate
public void setTemplate(ControlPlaneMachineSetTemplate template)
ControlPlaneMachineSet represents the configuration of the ControlPlaneMachineSet.
-
edit
public ControlPlaneMachineSetSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ControlPlaneMachineSetSpecBuilder>
-
toBuilder
public ControlPlaneMachineSetSpecBuilder toBuilder()
-
-