controller

package
v0.0.0-...-8fe31bb Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(path string) error

func DeleteDirectory

func DeleteDirectory(path string) error

func IsLovoStorageClassPV

func IsLovoStorageClassPV(pv *corev1.PersistentVolume) bool

func IsLovoStorageClassPVC

func IsLovoStorageClassPVC(pvc *corev1.PersistentVolumeClaim) bool

func LovoOnCurrentNode

func LovoOnCurrentNode(pv *corev1.PersistentVolume) bool

func ReclaimPV

func ReclaimPV(ctx context.Context, client client.Client, pv *corev1.PersistentVolume) error

Types

type PersistentVolumeClaimReconciler

type PersistentVolumeClaimReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

PersistentVolumeClaimReconciler reconciles a corev1.PersistentVolumeClaim object

func (*PersistentVolumeClaimReconciler) Reconcile

func (*PersistentVolumeClaimReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PersistentVolumeReconciler

type PersistentVolumeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

PersistentVolumeReconciler reconciles a corev1.PersistentVolume object

func (*PersistentVolumeReconciler) Reconcile

func (*PersistentVolumeReconciler) SetupWithManager

func (r *PersistentVolumeReconciler) 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