refactor: deprecating tenant v1alpha1 version

This commit is contained in:
Dario Tranchitella
2022-10-28 18:29:30 -04:00
parent b1ec9fed50
commit 2808344847
3 changed files with 6 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ type TenantStatus struct {
// +kubebuilder:printcolumn:name="Owner kind",type="string",JSONPath=".spec.owner.kind",description="The assigned Tenant owner kind"
// +kubebuilder:printcolumn:name="Node selector",type="string",JSONPath=".spec.nodeSelector",description="Node Selector applied to Pods"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Age"
// +kubebuilder:deprecatedversion:warning="This version is going to be dropped in the upcoming version of Capsule; please, migrate to v1beta2 version."
// Tenant is the Schema for the tenants API.
type Tenant struct {

View File

@@ -42,6 +42,9 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
deprecated: true
deprecationWarning: This version is going to be dropped in the upcoming version
of Capsule; please, migrate to v1beta2 version.
name: v1alpha1
schema:
openAPIV3Schema:

View File

@@ -615,6 +615,8 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
deprecated: true
deprecationWarning: This version is going to be dropped in the upcoming version of Capsule; please, migrate to v1beta2 version.
name: v1alpha1
schema:
openAPIV3Schema: