From a258269cf8147ff1b0aed135adc92df85ffcd8de Mon Sep 17 00:00:00 2001 From: pospispa Date: Wed, 22 Nov 2017 10:06:48 +0100 Subject: [PATCH] Added PVC Finalizing Controller feature switch. --- pkg/features/kube_features.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/features/kube_features.go b/pkg/features/kube_features.go index d9bd748dc98..1ed30a62fda 100644 --- a/pkg/features/kube_features.go +++ b/pkg/features/kube_features.go @@ -200,6 +200,12 @@ const ( // // Enable Block volume support in containers. BlockVolume utilfeature.Feature = "BlockVolume" + + // owner: @pospispa + // + // alpha: v1.9 + // Postpone deletion of a persistent volume claim in case it is used by a pod + PVCProtection utilfeature.Feature = "PVCProtection" ) func init() { @@ -237,6 +243,7 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS CSIPersistentVolume: {Default: false, PreRelease: utilfeature.Alpha}, CustomPodDNS: {Default: false, PreRelease: utilfeature.Alpha}, BlockVolume: {Default: false, PreRelease: utilfeature.Alpha}, + PVCProtection: {Default: false, PreRelease: utilfeature.Alpha}, // inherited features from generic apiserver, relisted here to get a conflict if it is changed // unintentionally on either side: