Class MachineSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.MachineSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachineSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachineSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachineSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachineSpec defines the desired state of Machine- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachineSpec()No args constructor for use in serializationMachineSpec(String authoritativeAPI, LifecycleHooks lifecycleHooks, ObjectMeta metadata, String providerID, ProviderSpec providerSpec, List<io.fabric8.kubernetes.api.model.Taint> taints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachineSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAuthoritativeAPI()authoritativeAPI is the API that is authoritative for this resource.LifecycleHooksgetLifecycleHooks()MachineSpec defines the desired state of MachineObjectMetagetMetadata()MachineSpec defines the desired state of MachineStringgetProviderID()providerID is the identification ID of the machine provided by the provider.ProviderSpecgetProviderSpec()MachineSpec defines the desired state of MachineList<io.fabric8.kubernetes.api.model.Taint>getTaints()The list of the taints to be applied to the corresponding Node in additive manner.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthoritativeAPI(String authoritativeAPI)authoritativeAPI is the API that is authoritative for this resource.voidsetLifecycleHooks(LifecycleHooks lifecycleHooks)MachineSpec defines the desired state of MachinevoidsetMetadata(ObjectMeta metadata)MachineSpec defines the desired state of MachinevoidsetProviderID(String providerID)providerID is the identification ID of the machine provided by the provider.voidsetProviderSpec(ProviderSpec providerSpec)MachineSpec defines the desired state of MachinevoidsetTaints(List<io.fabric8.kubernetes.api.model.Taint> taints)The list of the taints to be applied to the corresponding Node in additive manner.MachineSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
MachineSpec
public MachineSpec()
No args constructor for use in serialization
-
MachineSpec
public MachineSpec(String authoritativeAPI, LifecycleHooks lifecycleHooks, ObjectMeta metadata, String providerID, ProviderSpec providerSpec, List<io.fabric8.kubernetes.api.model.Taint> taints)
-
-
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`.
-
getLifecycleHooks
public LifecycleHooks getLifecycleHooks()
MachineSpec defines the desired state of Machine
-
setLifecycleHooks
public void setLifecycleHooks(LifecycleHooks lifecycleHooks)
MachineSpec defines the desired state of Machine
-
getMetadata
public ObjectMeta getMetadata()
MachineSpec defines the desired state of Machine
-
setMetadata
public void setMetadata(ObjectMeta metadata)
MachineSpec defines the desired state of Machine
-
getProviderID
public String getProviderID()
providerID is the identification ID of the machine provided by the provider. This field must match the provider ID as seen on the node object corresponding to this machine. This field is required by higher level consumers of cluster-api. Example use case is cluster autoscaler with cluster-api as provider. Clean-up logic in the autoscaler compares machines to nodes to find out machines at provider which could not get registered as Kubernetes nodes. With cluster-api as a generic out-of-tree provider for autoscaler, this field is required by autoscaler to be able to have a provider view of the list of machines. Another list of nodes is queried from the k8s apiserver and then a comparison is done to find out unregistered machines and are marked for delete. This field will be set by the actuators and consumed by higher level entities like autoscaler that will be interfacing with cluster-api as generic provider.
-
setProviderID
public void setProviderID(String providerID)
providerID is the identification ID of the machine provided by the provider. This field must match the provider ID as seen on the node object corresponding to this machine. This field is required by higher level consumers of cluster-api. Example use case is cluster autoscaler with cluster-api as provider. Clean-up logic in the autoscaler compares machines to nodes to find out machines at provider which could not get registered as Kubernetes nodes. With cluster-api as a generic out-of-tree provider for autoscaler, this field is required by autoscaler to be able to have a provider view of the list of machines. Another list of nodes is queried from the k8s apiserver and then a comparison is done to find out unregistered machines and are marked for delete. This field will be set by the actuators and consumed by higher level entities like autoscaler that will be interfacing with cluster-api as generic provider.
-
getProviderSpec
public ProviderSpec getProviderSpec()
MachineSpec defines the desired state of Machine
-
setProviderSpec
public void setProviderSpec(ProviderSpec providerSpec)
MachineSpec defines the desired state of Machine
-
getTaints
public List<io.fabric8.kubernetes.api.model.Taint> getTaints()
The list of the taints to be applied to the corresponding Node in additive manner. This list will not overwrite any other taints added to the Node on an ongoing basis by other entities. These taints should be actively reconciled e.g. if you ask the machine controller to apply a taint and then manually remove the taint the machine controller will put it back) but not have the machine controller remove any taints
-
setTaints
public void setTaints(List<io.fabric8.kubernetes.api.model.Taint> taints)
The list of the taints to be applied to the corresponding Node in additive manner. This list will not overwrite any other taints added to the Node on an ongoing basis by other entities. These taints should be actively reconciled e.g. if you ask the machine controller to apply a taint and then manually remove the taint the machine controller will put it back) but not have the machine controller remove any taints
-
edit
public MachineSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachineSpecBuilder>
-
toBuilder
public MachineSpecBuilder toBuilder()
-
-