From 39103c188f5d17a0baffb90c122f4751e5b33b93 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Fri, 5 Mar 2021 21:40:48 +0100 Subject: [PATCH] CSIStorageCapacity: add +featureGate=CSIStorageCapacity The tag is currently mostly ignored by the tooling, but its usage is encouraged (https://github.com/kubernetes/kubernetes/pull/99641#discussion_r588078444). --- staging/src/k8s.io/api/storage/v1/generated.proto | 1 + staging/src/k8s.io/api/storage/v1/types.go | 1 + staging/src/k8s.io/api/storage/v1beta1/generated.proto | 1 + staging/src/k8s.io/api/storage/v1beta1/types.go | 1 + 4 files changed, 4 insertions(+) diff --git a/staging/src/k8s.io/api/storage/v1/generated.proto b/staging/src/k8s.io/api/storage/v1/generated.proto index 93f82f576c9..46ac1fcb814 100644 --- a/staging/src/k8s.io/api/storage/v1/generated.proto +++ b/staging/src/k8s.io/api/storage/v1/generated.proto @@ -137,6 +137,7 @@ message CSIDriverSpec { // feature is enabled. The default is false. // // +optional + // +featureGate=CSIStorageCapacity optional bool storageCapacity = 4; // Defines if the underlying volume supports changing ownership and diff --git a/staging/src/k8s.io/api/storage/v1/types.go b/staging/src/k8s.io/api/storage/v1/types.go index 9fa40eebe33..ba27fa36852 100644 --- a/staging/src/k8s.io/api/storage/v1/types.go +++ b/staging/src/k8s.io/api/storage/v1/types.go @@ -335,6 +335,7 @@ type CSIDriverSpec struct { // feature is enabled. The default is false. // // +optional + // +featureGate=CSIStorageCapacity StorageCapacity *bool `json:"storageCapacity,omitempty" protobuf:"bytes,4,opt,name=storageCapacity"` // Defines if the underlying volume supports changing ownership and diff --git a/staging/src/k8s.io/api/storage/v1beta1/generated.proto b/staging/src/k8s.io/api/storage/v1beta1/generated.proto index 2693f672d53..a1555ee31d8 100644 --- a/staging/src/k8s.io/api/storage/v1beta1/generated.proto +++ b/staging/src/k8s.io/api/storage/v1beta1/generated.proto @@ -139,6 +139,7 @@ message CSIDriverSpec { // feature is enabled. The default is false. // // +optional + // +featureGate=CSIStorageCapacity optional bool storageCapacity = 4; // Defines if the underlying volume supports changing ownership and diff --git a/staging/src/k8s.io/api/storage/v1beta1/types.go b/staging/src/k8s.io/api/storage/v1beta1/types.go index 281d02d771c..1a20de64ecb 100644 --- a/staging/src/k8s.io/api/storage/v1beta1/types.go +++ b/staging/src/k8s.io/api/storage/v1beta1/types.go @@ -356,6 +356,7 @@ type CSIDriverSpec struct { // feature is enabled. The default is false. // // +optional + // +featureGate=CSIStorageCapacity StorageCapacity *bool `json:"storageCapacity,omitempty" protobuf:"bytes,4,opt,name=storageCapacity"` // Defines if the underlying volume supports changing ownership and