diff --git a/api/v1alpha6/openstackcluster_types.go b/api/v1alpha6/openstackcluster_types.go index 6b60c83b9e..3d7ba3d13c 100644 --- a/api/v1alpha6/openstackcluster_types.go +++ b/api/v1alpha6/openstackcluster_types.go @@ -213,6 +213,7 @@ type OpenStackClusterStatus struct { } // +kubebuilder:object:root=true +// +kubebuilder:deprecatedversion:warning="The v1alpha6 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 // +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this OpenStackCluster belongs" @@ -224,6 +225,8 @@ type OpenStackClusterStatus struct { // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackCluster" // OpenStackCluster is the Schema for the openstackclusters API. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -235,6 +238,8 @@ type OpenStackCluster struct { // +kubebuilder:object:root=true // OpenStackClusterList contains a list of OpenStackCluster. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha6/openstackclustertemplate_types.go b/api/v1alpha6/openstackclustertemplate_types.go index f79730240c..c76170dd52 100644 --- a/api/v1alpha6/openstackclustertemplate_types.go +++ b/api/v1alpha6/openstackclustertemplate_types.go @@ -30,10 +30,13 @@ type OpenStackClusterTemplateSpec struct { Template OpenStackClusterTemplateResource `json:"template"` } -//+kubebuilder:object:root=true -//+kubebuilder:resource:path=openstackclustertemplates,scope=Namespaced,categories=cluster-api,shortName=osct +// +kubebuilder:object:root=true +// +kubebuilder:deprecatedversion:warning="The v1alpha6 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 // OpenStackClusterTemplate is the Schema for the openstackclustertemplates API. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackClusterTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -41,9 +44,11 @@ type OpenStackClusterTemplate struct { Spec OpenStackClusterTemplateSpec `json:"spec,omitempty"` } -//+kubebuilder:object:root=true +// +kubebuilder:object:root=true // OpenStackClusterTemplateList contains a list of OpenStackClusterTemplate. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackClusterTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha6/openstackmachine_types.go b/api/v1alpha6/openstackmachine_types.go index c73505de3f..7dc263f099 100644 --- a/api/v1alpha6/openstackmachine_types.go +++ b/api/v1alpha6/openstackmachine_types.go @@ -137,6 +137,7 @@ type OpenStackMachineStatus struct { } // +kubebuilder:object:root=true +// +kubebuilder:deprecatedversion:warning="The v1alpha6 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 // +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this OpenStackMachine belongs" @@ -147,6 +148,8 @@ type OpenStackMachineStatus struct { // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackMachine" // OpenStackMachine is the Schema for the openstackmachines API. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -158,6 +161,8 @@ type OpenStackMachine struct { // +kubebuilder:object:root=true // OpenStackMachineList contains a list of OpenStackMachine. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/api/v1alpha6/openstackmachinetemplate_types.go b/api/v1alpha6/openstackmachinetemplate_types.go index aca2be9c70..6dbddaa85e 100644 --- a/api/v1alpha6/openstackmachinetemplate_types.go +++ b/api/v1alpha6/openstackmachinetemplate_types.go @@ -26,9 +26,12 @@ type OpenStackMachineTemplateSpec struct { } // +kubebuilder:object:root=true +// +kubebuilder:deprecatedversion:warning="The v1alpha6 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 // OpenStackMachineTemplate is the Schema for the openstackmachinetemplates API. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackMachineTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` @@ -39,6 +42,8 @@ type OpenStackMachineTemplate struct { // +kubebuilder:object:root=true // OpenStackMachineTemplateList contains a list of OpenStackMachineTemplate. +// +// Deprecated: This type will be removed in one of the next releases. type OpenStackMachineTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` 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 a9d2d44d11..40a2ba9b31 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml @@ -1825,10 +1825,17 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date + deprecated: true + deprecationWarning: The v1alpha6 version of OpenStackCluster has been deprecated + and will be removed in a future release of the API. Please upgrade. name: v1alpha6 schema: openAPIV3Schema: - description: OpenStackCluster is the Schema for the openstackclusters API. + description: |- + OpenStackCluster is the Schema for the openstackclusters API. + + + Deprecated: This type will be removed in one of the next releases. properties: apiVersion: description: |- 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 10a79fa903..0c7183f8ee 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml @@ -743,11 +743,17 @@ spec: type: object served: false storage: false - - name: v1alpha6 + - deprecated: true + deprecationWarning: The v1alpha6 version of OpenStackClusterTemplate has been + deprecated and will be removed in a future release of the API. Please upgrade. + name: v1alpha6 schema: openAPIV3Schema: - description: OpenStackClusterTemplate is the Schema for the openstackclustertemplates - API. + description: |- + OpenStackClusterTemplate is the Schema for the openstackclustertemplates API. + + + Deprecated: This type will be removed in one of the next releases. properties: apiVersion: description: |- 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 15b1bee559..67da66b7ea 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml @@ -594,10 +594,17 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date + deprecated: true + deprecationWarning: The v1alpha6 version of OpenStackMachine has been deprecated + and will be removed in a future release of the API. Please upgrade. name: v1alpha6 schema: openAPIV3Schema: - description: OpenStackMachine is the Schema for the openstackmachines API. + description: |- + OpenStackMachine is the Schema for the openstackmachines API. + + + Deprecated: This type will be removed in one of the next releases. properties: apiVersion: description: |- 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 dac6f9c36e..c96a204003 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml @@ -464,11 +464,17 @@ spec: type: object served: false storage: false - - name: v1alpha6 + - deprecated: true + deprecationWarning: The v1alpha6 version of OpenStackMachineTemplate has been + deprecated and will be removed in a future release of the API. Please upgrade. + name: v1alpha6 schema: openAPIV3Schema: - description: OpenStackMachineTemplate is the Schema for the openstackmachinetemplates - API. + description: |- + OpenStackMachineTemplate is the Schema for the openstackmachinetemplates API. + + + Deprecated: This type will be removed in one of the next releases. properties: apiVersion: description: |-