From 802172362450c65fdc63871a1098f04fea8be28c Mon Sep 17 00:00:00 2001 From: enxebre Date: Wed, 23 Oct 2024 16:27:04 +0200 Subject: [PATCH] Add crd override for NodePool scale subresource While this should be generated by the tooling/marker, it's not atm https://github.com/openshift/api/issues/2075. This fixes the regression while the tooling is fixed --- ...hift.openshift.io_nodepools_scale_subresource.yaml | 11 +++++++++++ .../nodepools-CustomNoUpgrade.crd.yaml | 3 +++ .../nodepools-Default.crd.yaml | 3 +++ .../nodepools-TechPreviewNoUpgrade.crd.yaml | 3 +++ 4 files changed, 20 insertions(+) create mode 100644 api/hypershift/v1beta1/manual-override-crd-manifests/nodepools.hypershift.openshift.io/hypershift.openshift.io_nodepools_scale_subresource.yaml diff --git a/api/hypershift/v1beta1/manual-override-crd-manifests/nodepools.hypershift.openshift.io/hypershift.openshift.io_nodepools_scale_subresource.yaml b/api/hypershift/v1beta1/manual-override-crd-manifests/nodepools.hypershift.openshift.io/hypershift.openshift.io_nodepools_scale_subresource.yaml new file mode 100644 index 0000000000..ee52591d28 --- /dev/null +++ b/api/hypershift/v1beta1/manual-override-crd-manifests/nodepools.hypershift.openshift.io/hypershift.openshift.io_nodepools_scale_subresource.yaml @@ -0,0 +1,11 @@ +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: nodepools.hypershift.openshift.io +spec: + versions: + - name: v1beta1 + subresources: + scale: + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-CustomNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-CustomNoUpgrade.crd.yaml index cb17737204..c8e19a9e32 100644 --- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-CustomNoUpgrade.crd.yaml +++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-CustomNoUpgrade.crd.yaml @@ -1280,6 +1280,9 @@ spec: served: true storage: true subresources: + scale: + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas status: {} - additionalPrinterColumns: - description: Cluster diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-Default.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-Default.crd.yaml index 0b788ab73b..36eb7b723f 100644 --- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-Default.crd.yaml +++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-Default.crd.yaml @@ -1263,6 +1263,9 @@ spec: served: true storage: true subresources: + scale: + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas status: {} - additionalPrinterColumns: - description: Cluster diff --git a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-TechPreviewNoUpgrade.crd.yaml b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-TechPreviewNoUpgrade.crd.yaml index 5e0961fe7f..614ea8a3df 100644 --- a/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-TechPreviewNoUpgrade.crd.yaml +++ b/cmd/install/assets/hypershift-operator/zz_generated.crd-manifests/nodepools-TechPreviewNoUpgrade.crd.yaml @@ -1280,6 +1280,9 @@ spec: served: true storage: true subresources: + scale: + specReplicasPath: .spec.replicas + statusReplicasPath: .status.replicas status: {} - additionalPrinterColumns: - description: Cluster