...

Package pvprotection

import "k8s.io/kubernetes/pkg/controller/volume/pvprotection"
Overview
Index

Overview ▾

type Controller

Controller is controller that removes PVProtectionFinalizer from PVs that are not bound to PVCs.

type Controller struct {
    // contains filtered or unexported fields
}

func NewPVProtectionController

func NewPVProtectionController(logger klog.Logger, pvInformer coreinformers.PersistentVolumeInformer, cl clientset.Interface) *Controller

NewPVProtectionController returns a new *Controller.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

Run runs the controller goroutines.