From 7af791ce6e98324f549f49b755d0f415efc22c1a Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Thu, 20 Jan 2022 18:21:42 +0100 Subject: [PATCH] Bump snapshot CRDs To version released in upstream external-attacher v5.0.1 released with Kubernetes 1.23. Namely, v1beta1 is officially deprecated and v1 is used to store the snapshots. --- assets/volumesnapshotclasses.yaml | 12 ++++++++++-- assets/volumesnapshotcontents.yaml | 12 ++++++++++-- assets/volumesnapshots.yaml | 11 +++++++++-- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/assets/volumesnapshotclasses.yaml b/assets/volumesnapshotclasses.yaml index 820a9a394..c6f0a3cfd 100644 --- a/assets/volumesnapshotclasses.yaml +++ b/assets/volumesnapshotclasses.yaml @@ -14,6 +14,9 @@ spec: kind: VolumeSnapshotClass listKind: VolumeSnapshotClassList plural: volumesnapshotclasses + shortNames: + - vsclass + - vsclasses singular: volumesnapshotclass scope: Cluster versions: @@ -58,7 +61,7 @@ spec: - driver type: object served: true - storage: false + storage: true subresources: {} - additionalPrinterColumns: - jsonPath: .driver @@ -72,6 +75,11 @@ spec: name: Age type: date name: v1beta1 + # This indicates the v1beta1 version of the custom resource is deprecated. + # API requests to this version receive a warning in the server response. + deprecated: true + # This overrides the default warning returned to clients making v1beta1 API requests. + deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotClass is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotClass" schema: openAPIV3Schema: description: VolumeSnapshotClass specifies parameters that a underlying storage system uses when creating a volume snapshot. A specific VolumeSnapshotClass is used by specifying its name in a VolumeSnapshot object. VolumeSnapshotClasses are non-namespaced @@ -101,7 +109,7 @@ spec: - driver type: object served: true - storage: true + storage: false subresources: {} status: acceptedNames: diff --git a/assets/volumesnapshotcontents.yaml b/assets/volumesnapshotcontents.yaml index c16e10956..ad133fb07 100644 --- a/assets/volumesnapshotcontents.yaml +++ b/assets/volumesnapshotcontents.yaml @@ -14,6 +14,9 @@ spec: kind: VolumeSnapshotContent listKind: VolumeSnapshotContentList plural: volumesnapshotcontents + shortNames: + - vsc + - vscs singular: volumesnapshotcontent scope: Cluster versions: @@ -153,7 +156,7 @@ spec: - spec type: object served: true - storage: false + storage: true subresources: status: {} - additionalPrinterColumns: @@ -189,6 +192,11 @@ spec: name: Age type: date name: v1beta1 + # This indicates the v1beta1 version of the custom resource is deprecated. + # API requests to this version receive a warning in the server response. + deprecated: true + # This overrides the default warning returned to clients making v1beta1 API requests. + deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshotContent is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshotContent" schema: openAPIV3Schema: description: VolumeSnapshotContent represents the actual "on-disk" snapshot object in the underlying storage system @@ -289,7 +297,7 @@ spec: - spec type: object served: true - storage: true + storage: false subresources: status: {} status: diff --git a/assets/volumesnapshots.yaml b/assets/volumesnapshots.yaml index a4d3f4cb4..a1871ae28 100644 --- a/assets/volumesnapshots.yaml +++ b/assets/volumesnapshots.yaml @@ -14,6 +14,8 @@ spec: kind: VolumeSnapshot listKind: VolumeSnapshotList plural: volumesnapshots + shortNames: + - vs singular: volumesnapshot scope: Namespaced versions: @@ -116,7 +118,7 @@ spec: - spec type: object served: true - storage: false + storage: true subresources: status: {} - additionalPrinterColumns: @@ -152,6 +154,11 @@ spec: name: Age type: date name: v1beta1 + # This indicates the v1beta1 version of the custom resource is deprecated. + # API requests to this version receive a warning in the server response. + deprecated: true + # This overrides the default warning returned to clients making v1beta1 API requests. + deprecationWarning: "snapshot.storage.k8s.io/v1beta1 VolumeSnapshot is deprecated; use snapshot.storage.k8s.io/v1 VolumeSnapshot" schema: openAPIV3Schema: description: VolumeSnapshot is a user's request for either creating a point-in-time snapshot of a persistent volume, or binding to a pre-existing snapshot. @@ -215,7 +222,7 @@ spec: - spec type: object served: true - storage: true + storage: false subresources: status: {} status: