Documentation
¶
Index ¶
- Constants
- type PVCReconciler
- func (r *PVCReconciler) CheckLocalPvStoragePluginByPVC(ctx context.Context, pvc *v1.PersistentVolumeClaim) (error, bool)
- func (r *PVCReconciler) CleanPVCS(ctx context.Context, pvcs []*v1.PersistentVolumeClaim) error
- func (r *PVCReconciler) FilterPVCListByNodeName(pvcList *v1.PersistentVolumeClaimList, nodeName string) []*v1.PersistentVolumeClaim
- 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" PVCnodeAnnotationKey = "volume.kubernetes.io/selected-node" )
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) CheckLocalPvStoragePluginByPVC ¶ added in v0.1.3
func (r *PVCReconciler) CheckLocalPvStoragePluginByPVC(ctx context.Context, pvc *v1.PersistentVolumeClaim) (error, bool)
func (*PVCReconciler) CleanPVCS ¶
func (r *PVCReconciler) CleanPVCS(ctx context.Context, pvcs []*v1.PersistentVolumeClaim) error
func (*PVCReconciler) FilterPVCListByNodeName ¶ added in v0.1.3
func (r *PVCReconciler) FilterPVCListByNodeName(pvcList *v1.PersistentVolumeClaimList, nodeName string) []*v1.PersistentVolumeClaim
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.