node

package
v0.0.0-...-35c3564 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// name of the cluster controller finalizer
	NodeControllerFinalizerName = "cluster-node.firefly.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeController

type NodeController struct {
	// contains filtered or unexported fields
}

func NewNodeController

func NewNodeController(
	client kubernetes.Interface,
	fireflyClient fireflyclient.Interface,
	clusterInformer clusterinformers.ClusterInformer,
	nodesInformer coreinformers.NodeInformer,
	workerNodesInformer coreinformers.NodeInformer,
	resyncPeriod time.Duration) (*NodeController, error)

NewNodeController returns a new *Controller.

func (*NodeController) Run

func (ctrl *NodeController) Run(ctx context.Context, workers int)

Run will not return until stopCh is closed. workers determines how many cluster will be handled in parallel.

Jump to

Keyboard shortcuts

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