diff --git a/machineconfiguration/v1alpha1/types_machineconfignode.go b/machineconfiguration/v1alpha1/types_machineconfignode.go index fdb6509373e..2047c922271 100644 --- a/machineconfiguration/v1alpha1/types_machineconfignode.go +++ b/machineconfiguration/v1alpha1/types_machineconfignode.go @@ -121,7 +121,7 @@ type MachineConfigNodeStatus struct { // observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. // This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. // +kubebuilder:validation:XValidation:rule="self >= oldSelf", message="observedGeneration must not decrease" - // +kubebuilder:validation:Minimum=0 + // +kubebuilder:validation:Minimum=1 // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // configVersion describes the current and desired machine config version for this node. @@ -150,17 +150,17 @@ type MachineConfigNodeStatusPinnedImageSet struct { Name string `json:"name"` // currentGeneration is the generation of the pinned image set that has most recently been successfully pulled and pinned on this node. // +kubebuilder:validation:XValidation:rule="self >= oldSelf", message="currentGeneration must not decrease" - // +kubebuilder:validation:Minimum=0 + // +kubebuilder:validation:Minimum=1 // +optional CurrentGeneration int32 `json:"currentGeneration,omitempty"` // desiredGeneration is the generation of the pinned image set that is targeted to be pulled and pinned on this node. // +kubebuilder:validation:XValidation:rule="self >= oldSelf", message="desiredGeneration must not decrease" - // +kubebuilder:validation:Minimum=0 + // +kubebuilder:validation:Minimum=1 // +optional DesiredGeneration int32 `json:"desiredGeneration,omitempty"` // lastFailedGeneration is the generation of the most recent pinned image set that failed to be pulled and pinned on this node. // +kubebuilder:validation:XValidation:rule="self >= oldSelf", message="lastFailedGeneration must not decrease" - // +kubebuilder:validation:Minimum=0 + // +kubebuilder:validation:Minimum=1 // +optional LastFailedGeneration int32 `json:"lastFailedGeneration,omitempty"` // lastFailedGenerationError is the error explaining why the desired images failed to be pulled and pinned. diff --git a/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml b/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml index 89bbbd61d75..bd85fcda792 100644 --- a/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml +++ b/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease diff --git a/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml b/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml index 374dc144dbd..aef89065f0e 100644 --- a/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml +++ b/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease diff --git a/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml b/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml index 938a4b71c56..13c8c1cd785 100644 --- a/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml +++ b/machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease diff --git a/machineconfiguration/v1alpha1/zz_generated.featuregated-crd-manifests/machineconfignodes.machineconfiguration.openshift.io/MachineConfigNodes.yaml b/machineconfiguration/v1alpha1/zz_generated.featuregated-crd-manifests/machineconfignodes.machineconfiguration.openshift.io/MachineConfigNodes.yaml index d8215eea475..02fe8d440ce 100644 --- a/machineconfiguration/v1alpha1/zz_generated.featuregated-crd-manifests/machineconfignodes.machineconfiguration.openshift.io/MachineConfigNodes.yaml +++ b/machineconfiguration/v1alpha1/zz_generated.featuregated-crd-manifests/machineconfignodes.machineconfiguration.openshift.io/MachineConfigNodes.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease diff --git a/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml b/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml index 89bbbd61d75..bd85fcda792 100644 --- a/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml +++ b/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease diff --git a/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml b/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml index 374dc144dbd..aef89065f0e 100644 --- a/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml +++ b/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease diff --git a/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml b/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml index 938a4b71c56..13c8c1cd785 100644 --- a/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml +++ b/payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml @@ -280,7 +280,7 @@ spec: observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller. This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec. format: int64 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: observedGeneration must not decrease @@ -298,7 +298,7 @@ spec: image set that has most recently been successfully pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: currentGeneration must not decrease @@ -308,7 +308,7 @@ spec: image set that is targeted to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: desiredGeneration must not decrease @@ -318,7 +318,7 @@ spec: recent pinned image set that failed to be pulled and pinned on this node. format: int32 - minimum: 0 + minimum: 1 type: integer x-kubernetes-validations: - message: lastFailedGeneration must not decrease