nodecontroller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package nodecontroller implements the logic that creates and manages InternalNodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncInternalNodes

func SyncInternalNodes(ctx context.Context, c client.Client) error

SyncInternalNodes makes sure that at controller startup there are no "orphans" InternalNode, so without corresponding Node.

Types

type NodeReconciler

type NodeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

NodeReconciler creates and manages InternalNodes.

func NewNodeReconciler

func NewNodeReconciler(cl client.Client, s *runtime.Scheme, liqoNamespace string) *NodeReconciler

NewNodeReconciler returns a new NodeReconciler.

func (*NodeReconciler) Reconcile

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

Reconcile manage Node lifecycle.

func (*NodeReconciler) SetupWithManager

func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager register the InternalFabricReconciler to the manager.

Jump to

Keyboard shortcuts

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