Skip to content

Commit 3107987

Browse files
committed
feat: use controller-gen deprecatedversion marker
Signed-off-by: Leonardo Cecchi <[email protected]>
1 parent 119cfa7 commit 3107987

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

client/apis/volumegroupsnapshot/v1beta1/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ type VolumeGroupSnapshotStatus struct {
119119
// +kubebuilder:object:root=true
120120
// +kubebuilder:resource:scope=Namespaced,shortName=vgs
121121
// +kubebuilder:subresource:status
122+
// +kubebuilder:deprecatedversion
122123
// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if all the individual snapshots in the group are ready to be used to restore a group of volumes."
123124
// +kubebuilder:printcolumn:name="VolumeGroupSnapshotClass",type=string,JSONPath=`.spec.volumeGroupSnapshotClassName`,description="The name of the VolumeGroupSnapshotClass requested by the VolumeGroupSnapshot."
124125
// +kubebuilder:printcolumn:name="VolumeGroupSnapshotContent",type=string,JSONPath=`.status.boundVolumeGroupSnapshotContentName`,description="Name of the VolumeGroupSnapshotContent object to which the VolumeGroupSnapshot object intends to bind to. Please note that verification of binding actually requires checking both VolumeGroupSnapshot and VolumeGroupSnapshotContent to ensure both are pointing at each other. Binding MUST be verified prior to usage of this object."
@@ -162,6 +163,7 @@ type VolumeGroupSnapshotList struct {
162163
// is used by specifying its name in a VolumeGroupSnapshot object.
163164
// VolumeGroupSnapshotClasses are non-namespaced.
164165
// +kubebuilder:object:root=true
166+
// +kubebuilder:deprecatedversion
165167
// +kubebuilder:resource:scope=Cluster,shortName=vgsclass;vgsclasses
166168
// +kubebuilder:printcolumn:name="Driver",type=string,JSONPath=`.driver`
167169
// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.deletionPolicy`,description="Determines whether a VolumeGroupSnapshotContent created through the VolumeGroupSnapshotClass should be deleted when its bound VolumeGroupSnapshot is deleted."
@@ -218,6 +220,7 @@ type VolumeGroupSnapshotClassList struct {
218220
// in the underlying storage system
219221
// +kubebuilder:object:root=true
220222
// +kubebuilder:resource:scope=Cluster,shortName=vgsc;vgscs
223+
// +kubebuilder:deprecatedversion
221224
// +kubebuilder:subresource:status
222225
// +kubebuilder:printcolumn:name="ReadyToUse",type=boolean,JSONPath=`.status.readyToUse`,description="Indicates if all the individual snapshots in the group are ready to be used to restore a group of volumes."
223226
// +kubebuilder:printcolumn:name="DeletionPolicy",type=string,JSONPath=`.spec.deletionPolicy`,description="Determines whether this VolumeGroupSnapshotContent and its physical group snapshot on the underlying storage system should be deleted when its bound VolumeGroupSnapshot is deleted."

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotclasses.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ spec:
3131
- jsonPath: .metadata.creationTimestamp
3232
name: Age
3333
type: date
34+
deprecated: true
3435
name: v1beta1
3536
schema:
3637
openAPIV3Schema:
@@ -91,7 +92,6 @@ spec:
9192
type: object
9293
served: true
9394
storage: false
94-
deprecated: true
9595
subresources: {}
9696
- additionalPrinterColumns:
9797
- jsonPath: .driver

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ spec:
6262
- jsonPath: .metadata.creationTimestamp
6363
name: Age
6464
type: date
65+
deprecated: true
6566
name: v1beta1
6667
schema:
6768
openAPIV3Schema:
@@ -329,7 +330,6 @@ spec:
329330
type: object
330331
served: true
331332
storage: false
332-
deprecated: true
333333
subresources:
334334
status: {}
335335
- additionalPrinterColumns:

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ spec:
4343
- jsonPath: .metadata.creationTimestamp
4444
name: Age
4545
type: date
46+
deprecated: true
4647
name: v1beta1
4748
schema:
4849
openAPIV3Schema:
@@ -235,7 +236,6 @@ spec:
235236
type: object
236237
served: true
237238
storage: false
238-
deprecated: true
239239
subresources:
240240
status: {}
241241
- additionalPrinterColumns:

vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1beta1/types.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)