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 ¶
NodeReconciler reconciles a Node object. This is pretty basic for now, need fine tuning, scale test, etc.
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)
Click to show internal directories.
Click to hide internal directories.