Skip to content

Commit

Permalink
Merge pull request #1900 from shiftstack/issue_1886
Browse files Browse the repository at this point in the history
🌱 Deprecate v1alpha6
  • Loading branch information
k8s-ci-robot authored Feb 22, 2024
2 parents 029d643 + 05537fb commit 8801eda
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 11 deletions.
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

0 comments on commit 8801eda

Please sign in to comment.