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 ¶
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