Documentation ¶
Index ¶
- Constants
- type PVCReconciler
- func (r *PVCReconciler) CleanPVCS(ctx context.Context, pvcs []*v1.PersistentVolumeClaim) error
- func (r *PVCReconciler) FilterPVCListByPV(pvcList *v1.PersistentVolumeClaimList, pv *v1.PersistentVolume) *v1.PersistentVolumeClaim
- func (r *PVCReconciler) FilterPVListByNodeName(pvList *v1.PersistentVolumeList, nodeName string) []*v1.PersistentVolume
- func (r *PVCReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PVCReconciler) SetupWithManager(mgr ctrl.Manager) error
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 (r *PVCReconciler) FilterPVCListByPV(pvcList *v1.PersistentVolumeClaimList, pv *v1.PersistentVolume) *v1.PersistentVolumeClaim
func (*PVCReconciler) FilterPVListByNodeName ¶
func (r *PVCReconciler) FilterPVListByNodeName(pvList *v1.PersistentVolumeList, nodeName string) []*v1.PersistentVolume
func (*PVCReconciler) SetupWithManager ¶
func (r *PVCReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.