Class MachinePoolSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.v1.MachinePoolSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachinePoolSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachinePoolSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachinePoolSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachinePoolSpec defines the desired state of MachinePool- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachinePoolSpec()No args constructor for use in serializationMachinePoolSpec(MachinePoolAutoscaling autoscaling, io.fabric8.kubernetes.api.model.LocalObjectReference clusterDeploymentRef, Map<String,String> labels, Map<String,String> machineLabels, String name, MachinePoolPlatform platform, Long replicas, List<io.fabric8.kubernetes.api.model.Taint> taints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachinePoolSpecBuilderedit()Map<String,Object>getAdditionalProperties()MachinePoolAutoscalinggetAutoscaling()MachinePoolSpec defines the desired state of MachinePoolio.fabric8.kubernetes.api.model.LocalObjectReferencegetClusterDeploymentRef()MachinePoolSpec defines the desired state of MachinePoolMap<String,String>getLabels()Map of label string keys and values that will be applied to the created MachineSet's MachineSpec.Map<String,String>getMachineLabels()Map of label string keys and values that will be applied to the created MachineSet's MachineTemplateSpec.StringgetName()Name is the name of the machine pool.MachinePoolPlatformgetPlatform()MachinePoolSpec defines the desired state of MachinePoolLonggetReplicas()Replicas is the count of machines for this machine pool.List<io.fabric8.kubernetes.api.model.Taint>getTaints()List of taints that will be applied to the created MachineSet's MachineSpec.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAutoscaling(MachinePoolAutoscaling autoscaling)MachinePoolSpec defines the desired state of MachinePoolvoidsetClusterDeploymentRef(io.fabric8.kubernetes.api.model.LocalObjectReference clusterDeploymentRef)MachinePoolSpec defines the desired state of MachinePoolvoidsetLabels(Map<String,String> labels)Map of label string keys and values that will be applied to the created MachineSet's MachineSpec.voidsetMachineLabels(Map<String,String> machineLabels)Map of label string keys and values that will be applied to the created MachineSet's MachineTemplateSpec.voidsetName(String name)Name is the name of the machine pool.voidsetPlatform(MachinePoolPlatform platform)MachinePoolSpec defines the desired state of MachinePoolvoidsetReplicas(Long replicas)Replicas is the count of machines for this machine pool.voidsetTaints(List<io.fabric8.kubernetes.api.model.Taint> taints)List of taints that will be applied to the created MachineSet's MachineSpec.MachinePoolSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
MachinePoolSpec
public MachinePoolSpec()
No args constructor for use in serialization
-
MachinePoolSpec
public MachinePoolSpec(MachinePoolAutoscaling autoscaling, io.fabric8.kubernetes.api.model.LocalObjectReference clusterDeploymentRef, Map<String,String> labels, Map<String,String> machineLabels, String name, MachinePoolPlatform platform, Long replicas, List<io.fabric8.kubernetes.api.model.Taint> taints)
-
-
Method Detail
-
getAutoscaling
public MachinePoolAutoscaling getAutoscaling()
MachinePoolSpec defines the desired state of MachinePool
-
setAutoscaling
public void setAutoscaling(MachinePoolAutoscaling autoscaling)
MachinePoolSpec defines the desired state of MachinePool
-
getClusterDeploymentRef
public io.fabric8.kubernetes.api.model.LocalObjectReference getClusterDeploymentRef()
MachinePoolSpec defines the desired state of MachinePool
-
setClusterDeploymentRef
public void setClusterDeploymentRef(io.fabric8.kubernetes.api.model.LocalObjectReference clusterDeploymentRef)
MachinePoolSpec defines the desired state of MachinePool
-
getLabels
public Map<String,String> getLabels()
Map of label string keys and values that will be applied to the created MachineSet's MachineSpec. This affects the labels that will end up on the *Nodes* (in contrast with the MachineLabels field). This list will overwrite any modifications made to Node labels on an ongoing basis.
-
setLabels
public void setLabels(Map<String,String> labels)
Map of label string keys and values that will be applied to the created MachineSet's MachineSpec. This affects the labels that will end up on the *Nodes* (in contrast with the MachineLabels field). This list will overwrite any modifications made to Node labels on an ongoing basis.
-
getMachineLabels
public Map<String,String> getMachineLabels()
Map of label string keys and values that will be applied to the created MachineSet's MachineTemplateSpec. This affects the labels that will end up on the *Machines* (in contrast with the Labels field). This list will overwrite any modifications made to Machine labels on an ongoing basis. Note: We ignore entries that conflict with generated labels.
-
setMachineLabels
public void setMachineLabels(Map<String,String> machineLabels)
Map of label string keys and values that will be applied to the created MachineSet's MachineTemplateSpec. This affects the labels that will end up on the *Machines* (in contrast with the Labels field). This list will overwrite any modifications made to Machine labels on an ongoing basis. Note: We ignore entries that conflict with generated labels.
-
getName
public String getName()
Name is the name of the machine pool.
-
setName
public void setName(String name)
Name is the name of the machine pool.
-
getPlatform
public MachinePoolPlatform getPlatform()
MachinePoolSpec defines the desired state of MachinePool
-
setPlatform
public void setPlatform(MachinePoolPlatform platform)
MachinePoolSpec defines the desired state of MachinePool
-
getReplicas
public Long getReplicas()
Replicas is the count of machines for this machine pool. Replicas and autoscaling cannot be used together. Default is 1, if autoscaling is not used.
-
setReplicas
public void setReplicas(Long replicas)
Replicas is the count of machines for this machine pool. Replicas and autoscaling cannot be used together. Default is 1, if autoscaling is not used.
-
getTaints
public List<io.fabric8.kubernetes.api.model.Taint> getTaints()
List of taints that will be applied to the created MachineSet's MachineSpec. This list will overwrite any modifications made to Node taints on an ongoing basis. In case of duplicate entries, first encountered taint Value will be preserved, and the rest collapsed on the corresponding MachineSets. Note that taints are uniquely identified based on key+effect, not just key.
-
setTaints
public void setTaints(List<io.fabric8.kubernetes.api.model.Taint> taints)
List of taints that will be applied to the created MachineSet's MachineSpec. This list will overwrite any modifications made to Node taints on an ongoing basis. In case of duplicate entries, first encountered taint Value will be preserved, and the rest collapsed on the corresponding MachineSets. Note that taints are uniquely identified based on key+effect, not just key.
-
edit
public MachinePoolSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachinePoolSpecBuilder>
-
toBuilder
public MachinePoolSpecBuilder toBuilder()
-
-