removal

package
v0.0.0-...-7a7d364 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Namespace string
}

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

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

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.

Jump to

Keyboard shortcuts

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