Skip to content

Commit fd2ccd2

Browse files
update 'update-payload-crds.sh' to deploy v1 crds for MCN api
1 parent 3c234b2 commit fd2ccd2

4 files changed

+37
-39
lines changed

hack/update-payload-crds.sh

+1-12
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
44

5-
#TODO(ijanssen): once MCO side is ready for MCN v1 API, update the v1 crds back to
6-
# `machineconfiguration/v1/zz_generated.crd-manifests/*.crd.yaml` and remove MCN v1alpha1 crd ref
7-
# `machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes*.crd.yaml`.
85
crd_globs="\
96
authorization/v1/zz_generated.crd-manifests/*_config-operator_*.crd*yaml\
107
config/v1/zz_generated.crd-manifests/*_config-operator_*.crd*yaml\
@@ -24,15 +21,7 @@ crd_globs="\
2421
operator/v1/zz_generated.crd-manifests/0000_25_kube-controller-manager_01_kubecontrollermanagers*.crd.yaml
2522
config/v1/zz_generated.crd-manifests/0000_10_openshift-controller-manager_01_builds*.crd.yaml
2623
operator/v1/zz_generated.crd-manifests/0000_50_openshift-controller-manager_02_openshiftcontrollermanagers*.crd.yaml
27-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_containerruntimeconfigs*.crd.yaml
28-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_controllerconfigs*.crd.yaml
29-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_kubeletconfigs*.crd.yaml
30-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigpools*.crd.yaml
31-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigs*.crd.yaml
32-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineosbuilds*.crd.yaml
33-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineosconfigs*.crd.yaml
34-
machineconfiguration/v1/zz_generated.crd-manifests/0000_80_machine-config_01_pinnedimagesets*.crd.yaml
35-
machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfignodes*.crd.yaml
24+
machineconfiguration/v1/zz_generated.crd-manifests/*.crd.yaml
3625
operator/v1/zz_generated.crd-manifests/0000_80_machine-config_01_machineconfigurations*.crd.yaml
3726
config/v1alpha1/zz_generated.crd-manifests/0000_10_config-operator_01_clusterimagepolicies*.crd.yaml
3827
config/v1alpha1/zz_generated.crd-manifests/0000_10_config-operator_01_imagepolicies*.crd.yaml

payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-CustomNoUpgrade.crd.yaml

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
api-approved.openshift.io: https://github.com/openshift/api/pull/2256
5+
api-approved.openshift.io: https://github.com/openshift/api/pull/2255
66
api.openshift.io/merged-by-featuregates: "true"
77
include.release.openshift.io/ibm-cloud-managed: "true"
88
include.release.openshift.io/self-managed-high-availability: "true"
@@ -72,12 +72,12 @@ spec:
7272
name: UncordonedNode
7373
priority: 1
7474
type: string
75-
name: v1alpha1
75+
name: v1
7676
schema:
7777
openAPIV3Schema:
7878
description: |-
7979
MachineConfigNode describes the health of the Machines on the system
80-
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
80+
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
8181
properties:
8282
apiVersion:
8383
description: |-
@@ -177,8 +177,11 @@ spec:
177177
config node.
178178
properties:
179179
conditions:
180-
description: conditions represent the observations of a machine config
181-
node's current state.
180+
description: |-
181+
conditions represent the observations of a machine config node's current state. Valid types are:
182+
UpdatePrepared, UpdateExecuted, UpdatePostActionComplete, UpdateComplete, Updated, Resumed,
183+
Drained, AppliedFilesAndOS, Cordoned, Uncordoned, RebootedNode, NodeDegraded, PinnedImageSetsProgressing,
184+
and PinnedImageSetsDegraded.
182185
items:
183186
description: Condition contains details for one aspect of the current
184187
state of this API Resource.
@@ -280,7 +283,7 @@ spec:
280283
observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller.
281284
This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec.
282285
format: int64
283-
minimum: 0
286+
minimum: 1
284287
type: integer
285288
x-kubernetes-validations:
286289
- message: observedGeneration must not decrease
@@ -298,7 +301,7 @@ spec:
298301
image set that has most recently been successfully pulled
299302
and pinned on this node.
300303
format: int32
301-
minimum: 0
304+
minimum: 1
302305
type: integer
303306
x-kubernetes-validations:
304307
- message: currentGeneration must not decrease
@@ -308,7 +311,7 @@ spec:
308311
image set that is targeted to be pulled and pinned on this
309312
node.
310313
format: int32
311-
minimum: 0
314+
minimum: 1
312315
type: integer
313316
x-kubernetes-validations:
314317
- message: desiredGeneration must not decrease
@@ -318,7 +321,7 @@ spec:
318321
recent pinned image set that failed to be pulled and pinned
319322
on this node.
320323
format: int32
321-
minimum: 0
324+
minimum: 1
322325
type: integer
323326
x-kubernetes-validations:
324327
- message: lastFailedGeneration must not decrease

payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-DevPreviewNoUpgrade.crd.yaml

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
api-approved.openshift.io: https://github.com/openshift/api/pull/2256
5+
api-approved.openshift.io: https://github.com/openshift/api/pull/2255
66
api.openshift.io/merged-by-featuregates: "true"
77
include.release.openshift.io/ibm-cloud-managed: "true"
88
include.release.openshift.io/self-managed-high-availability: "true"
@@ -72,12 +72,12 @@ spec:
7272
name: UncordonedNode
7373
priority: 1
7474
type: string
75-
name: v1alpha1
75+
name: v1
7676
schema:
7777
openAPIV3Schema:
7878
description: |-
7979
MachineConfigNode describes the health of the Machines on the system
80-
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
80+
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
8181
properties:
8282
apiVersion:
8383
description: |-
@@ -177,8 +177,11 @@ spec:
177177
config node.
178178
properties:
179179
conditions:
180-
description: conditions represent the observations of a machine config
181-
node's current state.
180+
description: |-
181+
conditions represent the observations of a machine config node's current state. Valid types are:
182+
UpdatePrepared, UpdateExecuted, UpdatePostActionComplete, UpdateComplete, Updated, Resumed,
183+
Drained, AppliedFilesAndOS, Cordoned, Uncordoned, RebootedNode, NodeDegraded, PinnedImageSetsProgressing,
184+
and PinnedImageSetsDegraded.
182185
items:
183186
description: Condition contains details for one aspect of the current
184187
state of this API Resource.
@@ -280,7 +283,7 @@ spec:
280283
observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller.
281284
This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec.
282285
format: int64
283-
minimum: 0
286+
minimum: 1
284287
type: integer
285288
x-kubernetes-validations:
286289
- message: observedGeneration must not decrease
@@ -298,7 +301,7 @@ spec:
298301
image set that has most recently been successfully pulled
299302
and pinned on this node.
300303
format: int32
301-
minimum: 0
304+
minimum: 1
302305
type: integer
303306
x-kubernetes-validations:
304307
- message: currentGeneration must not decrease
@@ -308,7 +311,7 @@ spec:
308311
image set that is targeted to be pulled and pinned on this
309312
node.
310313
format: int32
311-
minimum: 0
314+
minimum: 1
312315
type: integer
313316
x-kubernetes-validations:
314317
- message: desiredGeneration must not decrease
@@ -318,7 +321,7 @@ spec:
318321
recent pinned image set that failed to be pulled and pinned
319322
on this node.
320323
format: int32
321-
minimum: 0
324+
minimum: 1
322325
type: integer
323326
x-kubernetes-validations:
324327
- message: lastFailedGeneration must not decrease

payload-manifests/crds/0000_80_machine-config_01_machineconfignodes-TechPreviewNoUpgrade.crd.yaml

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
api-approved.openshift.io: https://github.com/openshift/api/pull/2256
5+
api-approved.openshift.io: https://github.com/openshift/api/pull/2255
66
api.openshift.io/merged-by-featuregates: "true"
77
include.release.openshift.io/ibm-cloud-managed: "true"
88
include.release.openshift.io/self-managed-high-availability: "true"
@@ -72,12 +72,12 @@ spec:
7272
name: UncordonedNode
7373
priority: 1
7474
type: string
75-
name: v1alpha1
75+
name: v1
7676
schema:
7777
openAPIV3Schema:
7878
description: |-
7979
MachineConfigNode describes the health of the Machines on the system
80-
Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support.
80+
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
8181
properties:
8282
apiVersion:
8383
description: |-
@@ -177,8 +177,11 @@ spec:
177177
config node.
178178
properties:
179179
conditions:
180-
description: conditions represent the observations of a machine config
181-
node's current state.
180+
description: |-
181+
conditions represent the observations of a machine config node's current state. Valid types are:
182+
UpdatePrepared, UpdateExecuted, UpdatePostActionComplete, UpdateComplete, Updated, Resumed,
183+
Drained, AppliedFilesAndOS, Cordoned, Uncordoned, RebootedNode, NodeDegraded, PinnedImageSetsProgressing,
184+
and PinnedImageSetsDegraded.
182185
items:
183186
description: Condition contains details for one aspect of the current
184187
state of this API Resource.
@@ -280,7 +283,7 @@ spec:
280283
observedGeneration represents the generation of the MachineConfigNode object observed by the Machine Config Operator's controller.
281284
This field is updated when the controller observes a change to the desiredConfig in the configVersion of the machine config node spec.
282285
format: int64
283-
minimum: 0
286+
minimum: 1
284287
type: integer
285288
x-kubernetes-validations:
286289
- message: observedGeneration must not decrease
@@ -298,7 +301,7 @@ spec:
298301
image set that has most recently been successfully pulled
299302
and pinned on this node.
300303
format: int32
301-
minimum: 0
304+
minimum: 1
302305
type: integer
303306
x-kubernetes-validations:
304307
- message: currentGeneration must not decrease
@@ -308,7 +311,7 @@ spec:
308311
image set that is targeted to be pulled and pinned on this
309312
node.
310313
format: int32
311-
minimum: 0
314+
minimum: 1
312315
type: integer
313316
x-kubernetes-validations:
314317
- message: desiredGeneration must not decrease
@@ -318,7 +321,7 @@ spec:
318321
recent pinned image set that failed to be pulled and pinned
319322
on this node.
320323
format: int32
321-
minimum: 0
324+
minimum: 1
322325
type: integer
323326
x-kubernetes-validations:
324327
- message: lastFailedGeneration must not decrease

0 commit comments

Comments
 (0)