mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #104913 from pohly/generic-ephemeral-pvc-protection
kube-controller-manager: properly check generic ephemeral volume feature
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user