Class MachineConfigNodeStatusMachineConfigVersion
- java.lang.Object
-
- io.fabric8.openshift.api.model.machineconfiguration.v1alpha1.MachineConfigNodeStatusMachineConfigVersion
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachineConfigNodeStatusMachineConfigVersionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachineConfigNodeStatusMachineConfigVersion extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachineConfigNodeStatusMachineConfigVersionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachineConfigNodeStatusMachineConfigVersion holds the current and desired config versions as last updated in the MCN status. When the current and desired versions do not match, the machine config pool is processing an upgrade and the machine config node will monitor the upgrade process. When the current and desired versions do match, the machine config node will ignore these events given that certain operations happen both during the MCO's upgrade mode and the daily operations mode.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachineConfigNodeStatusMachineConfigVersion()No args constructor for use in serializationMachineConfigNodeStatusMachineConfigVersion(String current, String desired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachineConfigNodeStatusMachineConfigVersionBuilderedit()Map<String,Object>getAdditionalProperties()StringgetCurrent()current is the name of the machine config currently in use on the node.StringgetDesired()desired is the MachineConfig the node wants to upgrade to.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCurrent(String current)current is the name of the machine config currently in use on the node.voidsetDesired(String desired)desired is the MachineConfig the node wants to upgrade to.MachineConfigNodeStatusMachineConfigVersionBuildertoBuilder()
-
-
-
Method Detail
-
getCurrent
public String getCurrent()
current is the name of the machine config currently in use on the node. This value is updated once the machine config daemon has completed the update of the configuration for the node. This value should match the desired version unless an upgrade is in progress. Must be a lowercase RFC-1123 subdomain name (https://tools.ietf.org/html/rfc1123) consisting of only lowercase alphanumeric characters, hyphens (-), and periods (.), and must start and end with an alphanumeric character, and be at most 253 characters in length.
-
setCurrent
public void setCurrent(String current)
current is the name of the machine config currently in use on the node. This value is updated once the machine config daemon has completed the update of the configuration for the node. This value should match the desired version unless an upgrade is in progress. Must be a lowercase RFC-1123 subdomain name (https://tools.ietf.org/html/rfc1123) consisting of only lowercase alphanumeric characters, hyphens (-), and periods (.), and must start and end with an alphanumeric character, and be at most 253 characters in length.
-
getDesired
public String getDesired()
desired is the MachineConfig the node wants to upgrade to. This value gets set in the machine config node status once the machine config has been validated against the current machine config. Must be a lowercase RFC-1123 subdomain name (https://tools.ietf.org/html/rfc1123) consisting of only lowercase alphanumeric characters, hyphens (-), and periods (.), and must start and end with an alphanumeric character, and be at most 253 characters in length.
-
setDesired
public void setDesired(String desired)
desired is the MachineConfig the node wants to upgrade to. This value gets set in the machine config node status once the machine config has been validated against the current machine config. Must be a lowercase RFC-1123 subdomain name (https://tools.ietf.org/html/rfc1123) consisting of only lowercase alphanumeric characters, hyphens (-), and periods (.), and must start and end with an alphanumeric character, and be at most 253 characters in length.
-
edit
public MachineConfigNodeStatusMachineConfigVersionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachineConfigNodeStatusMachineConfigVersionBuilder>
-
toBuilder
public MachineConfigNodeStatusMachineConfigVersionBuilder toBuilder()
-
-