lvg

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is the LogicalVolumeGroup custom resource Controller for serving VG operations on Node side in Reconcile loop

func NewController

func NewController(k8sClient *k8s.KubeClient, nodeID string, log *logrus.Logger) *Controller

NewController is the constructor for Controller struct Receives an instance of base.KubeClient, ID of a node where it works and logrus logger Returns an instance of Controller

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is the main Reconcile loop of Controller. This loop handles creation of VG matched to LogicalVolumeGroup CR on Controller's node if LogicalVolumeGroup.Spec.Status is Creating. Also this loop handles VG deletion on the node if LogicalVolumeGroup.ObjectMeta.DeletionTimestamp is not zero and VG is not placed on system drive. Returns reconcile result as ctrl.Result or error if something went wrong

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers Controller to ControllerManager

Jump to

Keyboard shortcuts

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