Class 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 Detail

      • MachineSetSpec

        public MachineSetSpec()
        No args constructor for use in serialization
    • 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
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)