Merge pull request #104913 from pohly/generic-ephemeral-pvc-protection

kube-controller-manager: properly check generic ephemeral volume feature
This commit is contained in:
Kubernetes Prow Robot 2021-09-14 15:26:59 -07:00 committed by GitHub
commit 5e2ec0c575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ func startPVCProtectionController(ctx ControllerContext) (controller.Interface,
ctx.InformerFactory.Core().V1().Pods(),
ctx.ClientBuilder.ClientOrDie("pvc-protection-controller"),
utilfeature.DefaultFeatureGate.Enabled(features.StorageObjectInUseProtection),
utilfeature.DefaultFeatureGate.Enabled(features.StorageObjectInUseProtection),
utilfeature.DefaultFeatureGate.Enabled(features.GenericEphemeralVolume),
)
if err != nil {
return nil, true, fmt.Errorf("failed to start the pvc protection controller: %v", err)