From 046cce9868eb82cf244ee13f5107cc73060aa57f Mon Sep 17 00:00:00 2001 From: xing-yang Date: Thu, 15 Apr 2021 01:54:36 +0000 Subject: [PATCH] Change storage version from v1beta1 to v1 --- .../snapshot.storage.k8s.io_volumesnapshotclasses.yaml | 9 +++++++-- .../snapshot.storage.k8s.io_volumesnapshotcontents.yaml | 9 +++++++-- .../crd/snapshot.storage.k8s.io_volumesnapshots.yaml | 9 +++++++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml b/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml index 820a9a394..47e5fd3a6 100644 --- a/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml +++ b/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml @@ -58,7 +58,7 @@ spec: - driver type: object served: true - storage: false + storage: true subresources: {} - additionalPrinterColumns: - jsonPath: .driver @@ -72,6 +72,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 +106,7 @@ spec: - driver type: object served: true - storage: true + storage: false subresources: {} status: acceptedNames: diff --git a/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml b/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml index b27b3286e..54ec2d5b6 100644 --- a/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml +++ b/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml @@ -149,7 +149,7 @@ spec: - spec type: object served: true - storage: false + storage: true subresources: status: {} - additionalPrinterColumns: @@ -181,6 +181,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 @@ -281,7 +286,7 @@ spec: - spec type: object served: true - storage: true + storage: false subresources: status: {} status: diff --git a/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml b/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml index a4d3f4cb4..1b41ff8bc 100644 --- a/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml +++ b/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml @@ -116,7 +116,7 @@ spec: - spec type: object served: true - storage: false + storage: true subresources: status: {} - additionalPrinterColumns: @@ -152,6 +152,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 +220,7 @@ spec: - spec type: object served: true - storage: true + storage: false subresources: status: {} status: