From d33c1bc487fecf5ce6ede3f0d08c0cc3047fb166 Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Thu, 15 Feb 2024 21:43:32 +0000 Subject: [PATCH] Stop serving v1alpha5 --- api/v1alpha5/openstackcluster_types.go | 1 + api/v1alpha5/openstackclustertemplate_types.go | 1 + api/v1alpha5/openstackmachine_types.go | 1 + api/v1alpha5/openstackmachinetemplate_types.go | 1 + .../infrastructure.cluster.x-k8s.io_openstackclusters.yaml | 2 +- ...frastructure.cluster.x-k8s.io_openstackclustertemplates.yaml | 2 +- .../infrastructure.cluster.x-k8s.io_openstackmachines.yaml | 2 +- ...frastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml | 2 +- 8 files changed, 8 insertions(+), 4 deletions(-) diff --git a/api/v1alpha5/openstackcluster_types.go b/api/v1alpha5/openstackcluster_types.go index e11aa158f7..3bc26c8cd1 100644 --- a/api/v1alpha5/openstackcluster_types.go +++ b/api/v1alpha5/openstackcluster_types.go @@ -206,6 +206,7 @@ type OpenStackClusterStatus struct { } // +kubebuilder:object:root=true +// +kubebuilder:unservedversion // +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackCluster has been deprecated and will be removed in a future release of the API. Please upgrade." // +kubebuilder:resource:path=openstackclusters,scope=Namespaced,categories=cluster-api,shortName=osc // +kubebuilder:subresource:status diff --git a/api/v1alpha5/openstackclustertemplate_types.go b/api/v1alpha5/openstackclustertemplate_types.go index 5b14ab35c1..6dc4ef8d2a 100644 --- a/api/v1alpha5/openstackclustertemplate_types.go +++ b/api/v1alpha5/openstackclustertemplate_types.go @@ -31,6 +31,7 @@ type OpenStackClusterTemplateSpec struct { } // +kubebuilder:object:root=true +// +kubebuilder:unservedversion // +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackClusterTemplate has been deprecated and will be removed in a future release of the API. Please upgrade." // +kubebuilder:resource:path=openstackclustertemplates,scope=Namespaced,categories=cluster-api,shortName=osct diff --git a/api/v1alpha5/openstackmachine_types.go b/api/v1alpha5/openstackmachine_types.go index 7a41c82147..56e0c6619a 100644 --- a/api/v1alpha5/openstackmachine_types.go +++ b/api/v1alpha5/openstackmachine_types.go @@ -135,6 +135,7 @@ type OpenStackMachineStatus struct { } // +kubebuilder:object:root=true +// +kubebuilder:unservedversion // +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackMachine has been deprecated and will be removed in a future release of the API. Please upgrade." // +kubebuilder:resource:path=openstackmachines,scope=Namespaced,categories=cluster-api,shortName=osm // +kubebuilder:subresource:status diff --git a/api/v1alpha5/openstackmachinetemplate_types.go b/api/v1alpha5/openstackmachinetemplate_types.go index 220229ce4f..7bb5d89628 100644 --- a/api/v1alpha5/openstackmachinetemplate_types.go +++ b/api/v1alpha5/openstackmachinetemplate_types.go @@ -26,6 +26,7 @@ type OpenStackMachineTemplateSpec struct { } // +kubebuilder:object:root=true +// +kubebuilder:unservedversion // +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackMachineTemplate has been deprecated and will be removed in a future release of the API. Please upgrade." // +kubebuilder:resource:path=openstackmachinetemplates,scope=Namespaced,categories=cluster-api,shortName=osmt diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml index 31c214580b..7364ef7157 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml @@ -1791,7 +1791,7 @@ spec: - ready type: object type: object - served: true + served: false storage: false subresources: status: {} diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml index b9c154dc7f..6cdd764039 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml @@ -741,7 +741,7 @@ spec: - template type: object type: object - served: true + served: false storage: false - name: v1alpha6 schema: diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml index e1a23d33be..15b1bee559 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml @@ -565,7 +565,7 @@ spec: type: boolean type: object type: object - served: true + served: false storage: false subresources: status: {} diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml index db63d9ade3..dac6f9c36e 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml @@ -462,7 +462,7 @@ spec: - template type: object type: object - served: true + served: false storage: false - name: v1alpha6 schema: