controller

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemovingNode            = "RemovingNode"
	NodeControllerComponent = "node-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PVCReconciler

type PVCReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	Logger            *logr.Logger
	DryRun            bool
	Recorder          record.EventRecorder
	Collector         *exporters.Collector
	PvcSelector       bool
	PvcAnoCustomKey   string
	PvcAnoCustomValue string
}

PVCReconciler reconciles a PersistentVolumeClaim object

func (*PVCReconciler) CleanPVCS

func (r *PVCReconciler) CleanPVCS(ctx context.Context, pvcs []*v1.PersistentVolumeClaim) error

func (*PVCReconciler) FilterPVCListByPV

func (*PVCReconciler) FilterPVListByNodeName

func (r *PVCReconciler) FilterPVListByNodeName(pvList *v1.PersistentVolumeList, nodeName string) []*v1.PersistentVolume

func (*PVCReconciler) Reconcile

func (r *PVCReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PVCReconciler) SetupWithManager

func (r *PVCReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL