Skip to content

🌱 Deprecate v1alpha6 #1900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/v1alpha6/openstackcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"`
Expand All @@ -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"`
Expand Down
11 changes: 8 additions & 3 deletions api/v1alpha6/openstackclustertemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,25 @@ 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"`

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"`
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha6/openstackmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"`
Expand All @@ -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"`
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha6/openstackmachinetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down