Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeController ¶
type NodeController struct {
// contains filtered or unexported fields
}
NodeController is a controller that watches nodes in a workload cluster. After creation attachTo must be called to attach the controller to a node informer. The informer management is separated from the controller to allow swapping the informer for a different one, when authentication expires.
func NewNodeController ¶
func NewNodeController(opts NodeControllerOptions) (NodeController, error)
func (*NodeController) AttachTo ¶
func (c *NodeController) AttachTo(nodeInformer corev1_informers.NodeInformer) error
func (*NodeController) Run ¶
func (c *NodeController) Run(ctx context.Context)
type NodeControllerOptions ¶
type NodeControllerOptions struct { Log logr.Logger ManagementClient client.Client Connections *clusters.Connections Cluster types.NamespacedName }
Click to show internal directories.
Click to hide internal directories.