Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
func NewReconciler ¶
func NewReconciler(client client.Client, namespace string) *Reconciler
func (*Reconciler) GetNodeStatusFromNode ¶
func (r *Reconciler) GetNodeStatusFromNode(ctx context.Context, object client.Object) []reconcile.Request
GetNodeStatusFromNode can be used to derive a reconcile.Request from a Node for a NodeStatus. It does this by translating the type and injecting the namespace. Thus, whenever a node is updated, also the nodestatus will be checked. This makes sure that our removal controller is able to successfully reconcile on all node removals.
func (*Reconciler) Reconcile ¶
Reconcile takes care of watching a LVMVolumeGroupNodeStatus, and reacting to a node removal request by deleting the unwanted LVMVolumeGroupNodeStatus that was associated with the node. It does nothing on active Nodes. If it can be assumed that there will always be only one node (SNO), this controller should not be started.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.