workload

package
v0.0.0-...-686994a Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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) Reconcile

func (c *NodeController) Reconcile(ctx context.Context, req ctrl.Request) 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
}

Jump to

Keyboard shortcuts

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