nodereconciler

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"node-controller",
	"Node Controller monitors Node CRUD events",
	cell.Provide(newNodeController),

	cell.Invoke(func(l logrus.FieldLogger, nr *NodeReconciler, ctrlManager ctrl.Manager) error {
		l.Info("Setting up node controller with manager")
		if err := nr.SetupWithManager(ctrlManager); err != nil {
			l.Errorf("failed to setup node controller with manager: %v", err)
			return errors.Wrap(err, "failed to setup node controller with manager")
		}
		return nil
	}),
)

Functions

This section is empty.

Types

type NodeReconciler

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

NodeReconciler reconciles a Node object. This is pretty basic for now, need fine tuning, scale test, etc.

func (*NodeReconciler) Reconcile

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

+kubebuilder:rbac:groups="",resources=nodes,verbs=get;list

func (*NodeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*NodeReconciler) Subscribe

func (r *NodeReconciler) Subscribe(nh datapath.NodeHandler)

func (*NodeReconciler) Unsubscribe

func (r *NodeReconciler) Unsubscribe(nh datapath.NodeHandler)

Jump to

Keyboard shortcuts

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