package pvcprotection
import "k8s.io/kubernetes/pkg/controller/volume/pvcprotection"
Index ¶
- type Controller
- func NewPVCProtectionController(pvcInformer coreinformers.PersistentVolumeClaimInformer, podInformer coreinformers.PodInformer, cl clientset.Interface, storageObjectInUseProtectionFeatureEnabled, genericEphemeralVolumeFeatureEnabled bool) (*Controller, error)
- func (c *Controller) Run(workers int, stopCh <-chan struct{})
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is controller that removes PVCProtectionFinalizer from PVCs that are used by no pods.
func NewPVCProtectionController ¶
func NewPVCProtectionController(pvcInformer coreinformers.PersistentVolumeClaimInformer, podInformer coreinformers.PodInformer, cl clientset.Interface, storageObjectInUseProtectionFeatureEnabled, genericEphemeralVolumeFeatureEnabled bool) (*Controller, error)
NewPVCProtectionController returns a new instance of PVCProtectionController.
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stopCh <-chan struct{})
Run runs the controller goroutines.
Source Files ¶
pvc_protection_controller.go
- Version
- v1.20.13-rc.0
- Published
- Oct 27, 2021
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 20 minutes ago –
Tools for package owners.