Back to godoc.org
k8s.io/kubernetes / pkg / controller / volume / pvcprotection

package pvcprotection

v1.18.5
Latest Go to latest
Published: Jun 26, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Index

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 bool) *Controller

NewPVCProtectionController returns a new instance of PVCProtectionController.

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run runs the controller goroutines.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier