Skip to content

Commit

Permalink
chore: mark v1alpha1 api version as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Feb 4, 2022
1 parent 40a6806 commit ca257a8
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions apis/v1alpha1/secretproviderclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ type SecretProviderClassStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion:warning="secrets-store.csi.x-k8s.io/v1alpha1 is deprecated. Use secrets-store.csi.x-k8s.io/v1 instead."
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

Expand Down
1 change: 1 addition & 0 deletions apis/v1alpha1/secretproviderclasspodstatus_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type SecretProviderClassObject struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:deprecatedversion
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ spec:
type: object
served: true
storage: true
- name: v1alpha1
- deprecated: true
deprecationWarning: secrets-store.csi.x-k8s.io/v1alpha1 is deprecated. Use secrets-store.csi.x-k8s.io/v1
instead.
name: v1alpha1
schema:
openAPIV3Schema:
description: SecretProviderClass is the Schema for the secretproviderclasses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ spec:
type: object
served: true
storage: true
- name: v1alpha1
- deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: SecretProviderClassPodStatus is the Schema for the secretproviderclassespodstatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ spec:
type: object
served: true
storage: true
- name: v1alpha1
- deprecated: true
deprecationWarning: secrets-store.csi.x-k8s.io/v1alpha1 is deprecated. Use secrets-store.csi.x-k8s.io/v1
instead.
name: v1alpha1
schema:
openAPIV3Schema:
description: SecretProviderClass is the Schema for the secretproviderclasses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ spec:
type: object
served: true
storage: true
- name: v1alpha1
- deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: SecretProviderClassPodStatus is the Schema for the secretproviderclassespodstatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ spec:
type: object
served: true
storage: true
- name: v1alpha1
- deprecated: true
deprecationWarning: secrets-store.csi.x-k8s.io/v1alpha1 is deprecated. Use secrets-store.csi.x-k8s.io/v1
instead.
name: v1alpha1
schema:
openAPIV3Schema:
description: SecretProviderClass is the Schema for the secretproviderclasses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ spec:
type: object
served: true
storage: true
- name: v1alpha1
- deprecated: true
name: v1alpha1
schema:
openAPIV3Schema:
description: SecretProviderClassPodStatus is the Schema for the secretproviderclassespodstatus
Expand Down

0 comments on commit ca257a8

Please sign in to comment.