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(String machineNamePrefix, 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()StringgetMachineNamePrefix()machineNamePrefix is the prefix used when creating machine names.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)voidsetMachineNamePrefix(String machineNamePrefix)machineNamePrefix is the prefix used when creating machine names.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(String machineNamePrefix, Integer replicas, io.fabric8.kubernetes.api.model.LabelSelector selector, String state, ControlPlaneMachineSetStrategy strategy, ControlPlaneMachineSetTemplate template)
-
-
Method Detail
-
getMachineNamePrefix
public String getMachineNamePrefix()
machineNamePrefix is the prefix used when creating machine names. Each machine name will consist of this prefix, followed by a randomly generated string of 5 characters, and the index of the machine. It must be a lowercase RFC 1123 subdomain, consisting of lowercase alphanumeric characters, hyphens ('-'), and periods ('.'). Each block, separated by periods, must start and end with an alphanumeric character. Hyphens are not allowed at the start or end of a block, and consecutive periods are not permitted. The prefix must be between 1 and 245 characters in length. For example, if machineNamePrefix is set to 'control-plane', and three machines are created, their names might be: control-plane-abcde-0, control-plane-fghij-1, control-plane-klmno-2
-
setMachineNamePrefix
public void setMachineNamePrefix(String machineNamePrefix)
machineNamePrefix is the prefix used when creating machine names. Each machine name will consist of this prefix, followed by a randomly generated string of 5 characters, and the index of the machine. It must be a lowercase RFC 1123 subdomain, consisting of lowercase alphanumeric characters, hyphens ('-'), and periods ('.'). Each block, separated by periods, must start and end with an alphanumeric character. Hyphens are not allowed at the start or end of a block, and consecutive periods are not permitted. The prefix must be between 1 and 245 characters in length. For example, if machineNamePrefix is set to 'control-plane', and three machines are created, their names might be: control-plane-abcde-0, control-plane-fghij-1, control-plane-klmno-2
-
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()
-
-