From 8b6f8549ff4a87a7d16de94ef80db6e9a13ed02f Mon Sep 17 00:00:00 2001 From: Ben Luddy Date: Wed, 11 Dec 2024 16:55:44 -0500 Subject: [PATCH] codegen --- .../0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml | 10 ++++++++++ .../0000_12_etcd_01_etcds-Default.crd.yaml | 10 ++++++++++ .../0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml | 10 ++++++++++ ...0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml | 10 ++++++++++ .../0000_20_kube-apiserver_01_kubeapiservers.crd.yaml | 10 ++++++++++ ...ntroller-manager_01_kubecontrollermanagers.crd.yaml | 10 ++++++++++ .../0000_25_kube-scheduler_01_kubeschedulers.crd.yaml | 10 ++++++++++ .../etcds.operator.openshift.io/AAA_ungated.yaml | 10 ++++++++++ .../etcds.operator.openshift.io/EtcdBackendQuota.yaml | 10 ++++++++++ .../etcds.operator.openshift.io/HardwareSpeed.yaml | 10 ++++++++++ .../AAA_ungated.yaml | 10 ++++++++++ .../AAA_ungated.yaml | 10 ++++++++++ .../AAA_ungated.yaml | 10 ++++++++++ .../0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml | 10 ++++++++++ .../crds/0000_12_etcd_01_etcds-Default.crd.yaml | 10 ++++++++++ .../0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml | 10 ++++++++++ ...0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml | 10 ++++++++++ .../0000_20_kube-apiserver_01_kubeapiservers.crd.yaml | 10 ++++++++++ ...ntroller-manager_01_kubecontrollermanagers.crd.yaml | 10 ++++++++++ .../0000_25_kube-scheduler_01_kubeschedulers.crd.yaml | 10 ++++++++++ 20 files changed, 200 insertions(+) diff --git a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml index b68cce4db30..a50ac4f910f 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml @@ -256,6 +256,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -296,10 +299,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-Default.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-Default.crd.yaml index ebe2486ef5b..52fadc90c3c 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-Default.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-Default.crd.yaml @@ -243,6 +243,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -283,10 +286,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml index bc49df765d5..6bc934a0dad 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml @@ -256,6 +256,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -296,10 +299,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml index 8449c20a6c3..6c0e1dd02fb 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml @@ -256,6 +256,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -296,10 +299,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.crd-manifests/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml index 435a8a81ee1..bdd137cf1d8 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml @@ -225,6 +225,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -265,10 +268,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.crd-manifests/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml index 7cd18e09b5e..b0d7726bfcb 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml @@ -234,6 +234,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -274,10 +277,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.crd-manifests/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml b/operator/v1/zz_generated.crd-manifests/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml index 9654facc4d2..46231b667c1 100644 --- a/operator/v1/zz_generated.crd-manifests/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml +++ b/operator/v1/zz_generated.crd-manifests/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml @@ -225,6 +225,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -265,10 +268,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/AAA_ungated.yaml b/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/AAA_ungated.yaml index 4db2817444a..ce73db2ed5e 100644 --- a/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/AAA_ungated.yaml +++ b/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/AAA_ungated.yaml @@ -230,6 +230,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -270,10 +273,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/EtcdBackendQuota.yaml b/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/EtcdBackendQuota.yaml index 136df990781..e4fd75c5b0c 100644 --- a/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/EtcdBackendQuota.yaml +++ b/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/EtcdBackendQuota.yaml @@ -243,6 +243,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -283,10 +286,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/HardwareSpeed.yaml b/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/HardwareSpeed.yaml index 73a47031f8c..22f084b8eb6 100644 --- a/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/HardwareSpeed.yaml +++ b/operator/v1/zz_generated.featuregated-crd-manifests/etcds.operator.openshift.io/HardwareSpeed.yaml @@ -243,6 +243,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -283,10 +286,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.featuregated-crd-manifests/kubeapiservers.operator.openshift.io/AAA_ungated.yaml b/operator/v1/zz_generated.featuregated-crd-manifests/kubeapiservers.operator.openshift.io/AAA_ungated.yaml index 6586f30a896..df219fa1bcd 100644 --- a/operator/v1/zz_generated.featuregated-crd-manifests/kubeapiservers.operator.openshift.io/AAA_ungated.yaml +++ b/operator/v1/zz_generated.featuregated-crd-manifests/kubeapiservers.operator.openshift.io/AAA_ungated.yaml @@ -226,6 +226,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -266,10 +269,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.featuregated-crd-manifests/kubecontrollermanagers.operator.openshift.io/AAA_ungated.yaml b/operator/v1/zz_generated.featuregated-crd-manifests/kubecontrollermanagers.operator.openshift.io/AAA_ungated.yaml index 086aa9a3704..d2b8fc9640e 100644 --- a/operator/v1/zz_generated.featuregated-crd-manifests/kubecontrollermanagers.operator.openshift.io/AAA_ungated.yaml +++ b/operator/v1/zz_generated.featuregated-crd-manifests/kubecontrollermanagers.operator.openshift.io/AAA_ungated.yaml @@ -235,6 +235,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -275,10 +278,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/operator/v1/zz_generated.featuregated-crd-manifests/kubeschedulers.operator.openshift.io/AAA_ungated.yaml b/operator/v1/zz_generated.featuregated-crd-manifests/kubeschedulers.operator.openshift.io/AAA_ungated.yaml index bca1546d704..208cc3bb1b5 100644 --- a/operator/v1/zz_generated.featuregated-crd-manifests/kubeschedulers.operator.openshift.io/AAA_ungated.yaml +++ b/operator/v1/zz_generated.featuregated-crd-manifests/kubeschedulers.operator.openshift.io/AAA_ungated.yaml @@ -226,6 +226,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -266,10 +269,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml b/payload-manifests/crds/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml index b68cce4db30..a50ac4f910f 100644 --- a/payload-manifests/crds/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml +++ b/payload-manifests/crds/0000_12_etcd_01_etcds-CustomNoUpgrade.crd.yaml @@ -256,6 +256,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -296,10 +299,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_12_etcd_01_etcds-Default.crd.yaml b/payload-manifests/crds/0000_12_etcd_01_etcds-Default.crd.yaml index ebe2486ef5b..52fadc90c3c 100644 --- a/payload-manifests/crds/0000_12_etcd_01_etcds-Default.crd.yaml +++ b/payload-manifests/crds/0000_12_etcd_01_etcds-Default.crd.yaml @@ -243,6 +243,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -283,10 +286,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml b/payload-manifests/crds/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml index bc49df765d5..6bc934a0dad 100644 --- a/payload-manifests/crds/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml +++ b/payload-manifests/crds/0000_12_etcd_01_etcds-DevPreviewNoUpgrade.crd.yaml @@ -256,6 +256,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -296,10 +299,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml b/payload-manifests/crds/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml index 8449c20a6c3..6c0e1dd02fb 100644 --- a/payload-manifests/crds/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml +++ b/payload-manifests/crds/0000_12_etcd_01_etcds-TechPreviewNoUpgrade.crd.yaml @@ -256,6 +256,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -296,10 +299,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml b/payload-manifests/crds/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml index 435a8a81ee1..bdd137cf1d8 100644 --- a/payload-manifests/crds/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml +++ b/payload-manifests/crds/0000_20_kube-apiserver_01_kubeapiservers.crd.yaml @@ -225,6 +225,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -265,10 +268,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml b/payload-manifests/crds/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml index 7cd18e09b5e..b0d7726bfcb 100644 --- a/payload-manifests/crds/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml +++ b/payload-manifests/crds/0000_25_kube-controller-manager_01_kubecontrollermanagers.crd.yaml @@ -234,6 +234,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -274,10 +277,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with diff --git a/payload-manifests/crds/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml b/payload-manifests/crds/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml index 9654facc4d2..46231b667c1 100644 --- a/payload-manifests/crds/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml +++ b/payload-manifests/crds/0000_25_kube-scheduler_01_kubeschedulers.crd.yaml @@ -225,6 +225,9 @@ spec: successful deployment format: int32 type: integer + x-kubernetes-validations: + - message: must only increase + rule: self >= oldSelf lastFailedCount: description: lastFailedCount is how often the installer pod of the last failed revision failed. @@ -265,10 +268,17 @@ spec: required: - nodeName type: object + x-kubernetes-validations: + - message: currentRevision cannot be unset once set + rule: has(self.currentRevision) || !has(oldSelf.currentRevision) type: array x-kubernetes-list-map-keys: - nodeName x-kubernetes-list-type: map + x-kubernetes-validations: + - message: no more than 1 node status may have a nonzero targetRevision + rule: size(self.filter(status, status.?targetRevision.orValue(0) + != 0)) <= 1 observedGeneration: description: observedGeneration is the last generation change you've dealt with