Skip to content

Commit edc2915

Browse files
committed
kube-controller-manager: properly check generic ephemeral volume feature
Due to a cut-and-paste error in the original implementation in Kubernetes 1.19, support for generic ephemeral inline volumes in the PVC protection controller was incorrectly tied to the "storage object in use" feature gate.
1 parent 99c0097 commit edc2915

File tree

1 file changed

+1
-1
lines changed
  • cmd/kube-controller-manager/app

1 file changed

+1
-1
lines changed

cmd/kube-controller-manager/app/core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ func startPVCProtectionController(ctx ControllerContext) (http.Handler, bool, er
577577
ctx.InformerFactory.Core().V1().Pods(),
578578
ctx.ClientBuilder.ClientOrDie("pvc-protection-controller"),
579579
utilfeature.DefaultFeatureGate.Enabled(features.StorageObjectInUseProtection),
580-
utilfeature.DefaultFeatureGate.Enabled(features.StorageObjectInUseProtection),
580+
utilfeature.DefaultFeatureGate.Enabled(features.GenericEphemeralVolume),
581581
)
582582
if err != nil {
583583
return nil, true, fmt.Errorf("failed to start the pvc protection controller: %v", err)

0 commit comments

Comments
 (0)