Skip to content

Commit 05537fb

Browse files
committed
Deprecate v1alpha6
1 parent 2382d56 commit 05537fb

8 files changed

+57
-11
lines changed

api/v1alpha6/openstackcluster_types.go

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

215215
// +kubebuilder:object:root=true
216+
// +kubebuilder:deprecatedversion:warning="The v1alpha6 version of OpenStackCluster has been deprecated and will be removed in a future release of the API. Please upgrade."
216217
// +kubebuilder:resource:path=openstackclusters,scope=Namespaced,categories=cluster-api,shortName=osc
217218
// +kubebuilder:subresource:status
218219
// +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 {
224225
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackCluster"
225226

226227
// OpenStackCluster is the Schema for the openstackclusters API.
228+
//
229+
// Deprecated: This type will be removed in one of the next releases.
227230
type OpenStackCluster struct {
228231
metav1.TypeMeta `json:",inline"`
229232
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -235,6 +238,8 @@ type OpenStackCluster struct {
235238
// +kubebuilder:object:root=true
236239

237240
// OpenStackClusterList contains a list of OpenStackCluster.
241+
//
242+
// Deprecated: This type will be removed in one of the next releases.
238243
type OpenStackClusterList struct {
239244
metav1.TypeMeta `json:",inline"`
240245
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha6/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 v1alpha6 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/v1alpha6/openstackmachine_types.go

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

139139
// +kubebuilder:object:root=true
140+
// +kubebuilder:deprecatedversion:warning="The v1alpha6 version of OpenStackMachine has been deprecated and will be removed in a future release of the API. Please upgrade."
140141
// +kubebuilder:resource:path=openstackmachines,scope=Namespaced,categories=cluster-api,shortName=osm
141142
// +kubebuilder:subresource:status
142143
// +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 {
147148
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackMachine"
148149

149150
// OpenStackMachine is the Schema for the openstackmachines API.
151+
//
152+
// Deprecated: This type will be removed in one of the next releases.
150153
type OpenStackMachine struct {
151154
metav1.TypeMeta `json:",inline"`
152155
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -158,6 +161,8 @@ type OpenStackMachine struct {
158161
// +kubebuilder:object:root=true
159162

160163
// OpenStackMachineList contains a list of OpenStackMachine.
164+
//
165+
// Deprecated: This type will be removed in one of the next releases.
161166
type OpenStackMachineList struct {
162167
metav1.TypeMeta `json:",inline"`
163168
metav1.ListMeta `json:"metadata,omitempty"`

api/v1alpha6/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 v1alpha6 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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,10 +1825,17 @@ spec:
18251825
jsonPath: .metadata.creationTimestamp
18261826
name: Age
18271827
type: date
1828+
deprecated: true
1829+
deprecationWarning: The v1alpha6 version of OpenStackCluster has been deprecated
1830+
and will be removed in a future release of the API. Please upgrade.
18281831
name: v1alpha6
18291832
schema:
18301833
openAPIV3Schema:
1831-
description: OpenStackCluster is the Schema for the openstackclusters API.
1834+
description: |-
1835+
OpenStackCluster is the Schema for the openstackclusters API.
1836+
1837+
1838+
Deprecated: This type will be removed in one of the next releases.
18321839
properties:
18331840
apiVersion:
18341841
description: |-

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,11 +743,17 @@ spec:
743743
type: object
744744
served: false
745745
storage: false
746-
- name: v1alpha6
746+
- deprecated: true
747+
deprecationWarning: The v1alpha6 version of OpenStackClusterTemplate has been
748+
deprecated and will be removed in a future release of the API. Please upgrade.
749+
name: v1alpha6
747750
schema:
748751
openAPIV3Schema:
749-
description: OpenStackClusterTemplate is the Schema for the openstackclustertemplates
750-
API.
752+
description: |-
753+
OpenStackClusterTemplate is the Schema for the openstackclustertemplates API.
754+
755+
756+
Deprecated: This type will be removed in one of the next releases.
751757
properties:
752758
apiVersion:
753759
description: |-

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,17 @@ spec:
594594
jsonPath: .metadata.creationTimestamp
595595
name: Age
596596
type: date
597+
deprecated: true
598+
deprecationWarning: The v1alpha6 version of OpenStackMachine has been deprecated
599+
and will be removed in a future release of the API. Please upgrade.
597600
name: v1alpha6
598601
schema:
599602
openAPIV3Schema:
600-
description: OpenStackMachine is the Schema for the openstackmachines API.
603+
description: |-
604+
OpenStackMachine is the Schema for the openstackmachines API.
605+
606+
607+
Deprecated: This type will be removed in one of the next releases.
601608
properties:
602609
apiVersion:
603610
description: |-

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,17 @@ spec:
464464
type: object
465465
served: false
466466
storage: false
467-
- name: v1alpha6
467+
- deprecated: true
468+
deprecationWarning: The v1alpha6 version of OpenStackMachineTemplate has been
469+
deprecated and will be removed in a future release of the API. Please upgrade.
470+
name: v1alpha6
468471
schema:
469472
openAPIV3Schema:
470-
description: OpenStackMachineTemplate is the Schema for the openstackmachinetemplates
471-
API.
473+
description: |-
474+
OpenStackMachineTemplate is the Schema for the openstackmachinetemplates API.
475+
476+
477+
Deprecated: This type will be removed in one of the next releases.
472478
properties:
473479
apiVersion:
474480
description: |-

0 commit comments

Comments
 (0)