Skip to content

Commit 6c08eb8

Browse files
Deprecate v1alpha5
Signed-off-by: Sean Schneeweiss <[email protected]>
1 parent 916f429 commit 6c08eb8

8 files changed

+45
-11
lines changed

api/v1alpha5/openstackcluster_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ type OpenStackClusterStatus struct {
206206
}
207207

208208
// +kubebuilder:object:root=true
209+
// +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackCluster has been deprecated and will be removed in a future release of the API. Please upgrade."
209210
// +kubebuilder:resource:path=openstackclusters,scope=Namespaced,categories=cluster-api,shortName=osc
210211
// +kubebuilder:subresource:status
211212
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this OpenStackCluster belongs"
@@ -217,6 +218,8 @@ type OpenStackClusterStatus struct {
217218
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackCluster"
218219

219220
// OpenStackCluster is the Schema for the openstackclusters API.
221+
//
222+
// Deprecated: This type will be removed in one of the next releases.
220223
type OpenStackCluster struct {
221224
metav1.TypeMeta `json:",inline"`
222225
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -228,6 +231,8 @@ type OpenStackCluster struct {
228231
// +kubebuilder:object:root=true
229232

230233
// OpenStackClusterList contains a list of OpenStackCluster.
234+
//
235+
// Deprecated: This type will be removed in one of the next releases.
231236
type OpenStackClusterList struct {
232237
metav1.TypeMeta `json:",inline"`
233238
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha5/openstackclustertemplate_types.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,25 @@ type OpenStackClusterTemplateSpec struct {
3030
Template OpenStackClusterTemplateResource `json:"template"`
3131
}
3232

33-
//+kubebuilder:object:root=true
34-
//+kubebuilder:resource:path=openstackclustertemplates,scope=Namespaced,categories=cluster-api,shortName=osct
33+
// +kubebuilder:object:root=true
34+
// +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackClusterTemplate has been deprecated and will be removed in a future release of the API. Please upgrade."
35+
// +kubebuilder:resource:path=openstackclustertemplates,scope=Namespaced,categories=cluster-api,shortName=osct
3536

3637
// OpenStackClusterTemplate is the Schema for the openstackclustertemplates API.
38+
//
39+
// Deprecated: This type will be removed in one of the next releases.
3740
type OpenStackClusterTemplate struct {
3841
metav1.TypeMeta `json:",inline"`
3942
metav1.ObjectMeta `json:"metadata,omitempty"`
4043

4144
Spec OpenStackClusterTemplateSpec `json:"spec,omitempty"`
4245
}
4346

44-
//+kubebuilder:object:root=true
47+
// +kubebuilder:object:root=true
4548

4649
// OpenStackClusterTemplateList contains a list of OpenStackClusterTemplate.
50+
//
51+
// Deprecated: This type will be removed in one of the next releases.
4752
type OpenStackClusterTemplateList struct {
4853
metav1.TypeMeta `json:",inline"`
4954
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha5/openstackmachine_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ type OpenStackMachineStatus struct {
135135
}
136136

137137
// +kubebuilder:object:root=true
138+
// +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackMachine has been deprecated and will be removed in a future release of the API. Please upgrade."
138139
// +kubebuilder:resource:path=openstackmachines,scope=Namespaced,categories=cluster-api,shortName=osm
139140
// +kubebuilder:subresource:status
140141
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this OpenStackMachine belongs"
@@ -145,6 +146,8 @@ type OpenStackMachineStatus struct {
145146
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackMachine"
146147

147148
// OpenStackMachine is the Schema for the openstackmachines API.
149+
//
150+
// Deprecated: This type will be removed in one of the next releases.
148151
type OpenStackMachine struct {
149152
metav1.TypeMeta `json:",inline"`
150153
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -156,6 +159,8 @@ type OpenStackMachine struct {
156159
// +kubebuilder:object:root=true
157160

158161
// OpenStackMachineList contains a list of OpenStackMachine.
162+
//
163+
// Deprecated: This type will be removed in one of the next releases.
159164
type OpenStackMachineList struct {
160165
metav1.TypeMeta `json:",inline"`
161166
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha5/openstackmachinetemplate_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ type OpenStackMachineTemplateSpec struct {
2626
}
2727

2828
// +kubebuilder:object:root=true
29+
// +kubebuilder:deprecatedversion:warning="The v1alpha5 version of OpenStackMachineTemplate has been deprecated and will be removed in a future release of the API. Please upgrade."
2930
// +kubebuilder:resource:path=openstackmachinetemplates,scope=Namespaced,categories=cluster-api,shortName=osmt
3031

3132
// OpenStackMachineTemplate is the Schema for the openstackmachinetemplates API.
33+
//
34+
// Deprecated: This type will be removed in one of the next releases.
3235
type OpenStackMachineTemplate struct {
3336
metav1.TypeMeta `json:",inline"`
3437
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -39,6 +42,8 @@ type OpenStackMachineTemplate struct {
3942
// +kubebuilder:object:root=true
4043

4144
// OpenStackMachineTemplateList contains a list of OpenStackMachineTemplate.
45+
//
46+
// Deprecated: This type will be removed in one of the next releases.
4247
type OpenStackMachineTemplateList struct {
4348
metav1.TypeMeta `json:",inline"`
4449
metav1.ListMeta `json:"metadata,omitempty"`

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ spec:
4949
jsonPath: .metadata.creationTimestamp
5050
name: Age
5151
type: date
52+
deprecated: true
53+
deprecationWarning: The v1alpha5 version of OpenStackCluster has been deprecated
54+
and will be removed in a future release of the API. Please upgrade.
5255
name: v1alpha5
5356
schema:
5457
openAPIV3Schema:
55-
description: OpenStackCluster is the Schema for the openstackclusters API.
58+
description: "OpenStackCluster is the Schema for the openstackclusters API.
59+
\n Deprecated: This type will be removed in one of the next releases."
5660
properties:
5761
apiVersion:
5862
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclustertemplates.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ spec:
1919
singular: openstackclustertemplate
2020
scope: Namespaced
2121
versions:
22-
- name: v1alpha5
22+
- deprecated: true
23+
deprecationWarning: The v1alpha5 version of OpenStackClusterTemplate has been
24+
deprecated and will be removed in a future release of the API. Please upgrade.
25+
name: v1alpha5
2326
schema:
2427
openAPIV3Schema:
25-
description: OpenStackClusterTemplate is the Schema for the openstackclustertemplates
26-
API.
28+
description: "OpenStackClusterTemplate is the Schema for the openstackclustertemplates
29+
API. \n Deprecated: This type will be removed in one of the next releases."
2730
properties:
2831
apiVersion:
2932
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ spec:
4444
jsonPath: .metadata.creationTimestamp
4545
name: Age
4646
type: date
47+
deprecated: true
48+
deprecationWarning: The v1alpha5 version of OpenStackMachine has been deprecated
49+
and will be removed in a future release of the API. Please upgrade.
4750
name: v1alpha5
4851
schema:
4952
openAPIV3Schema:
50-
description: OpenStackMachine is the Schema for the openstackmachines API.
53+
description: "OpenStackMachine is the Schema for the openstackmachines API.
54+
\n Deprecated: This type will be removed in one of the next releases."
5155
properties:
5256
apiVersion:
5357
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachinetemplates.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ spec:
1919
singular: openstackmachinetemplate
2020
scope: Namespaced
2121
versions:
22-
- name: v1alpha5
22+
- deprecated: true
23+
deprecationWarning: The v1alpha5 version of OpenStackMachineTemplate has been
24+
deprecated and will be removed in a future release of the API. Please upgrade.
25+
name: v1alpha5
2326
schema:
2427
openAPIV3Schema:
25-
description: OpenStackMachineTemplate is the Schema for the openstackmachinetemplates
26-
API.
28+
description: "OpenStackMachineTemplate is the Schema for the openstackmachinetemplates
29+
API. \n Deprecated: This type will be removed in one of the next releases."
2730
properties:
2831
apiVersion:
2932
description: 'APIVersion defines the versioned schema of this representation

0 commit comments

Comments
 (0)