nodecollector

package
v1.0.0-2021-10-07-22-5... Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LabelNodeRolePrefix is a label prefix for node roles
	// It's copied over to here until it's merged in core: https://github.com/kubernetes/kubernetes/pull/39112
	LabelNodeRolePrefix = "node-role.kubernetes.io/"

	// NodeLabelRole specifies the role of a node
	NodeLabelRole = "kubernetes.io/role"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	// Start starts a goroutine to update lease
	Start(ctx context.Context)
}

LeaseUpdater is to update lease with certain period

func NewCollector

func NewCollector(
	nodeInformer corev1informers.NodeInformer,
	kubeClient kubernetes.Interface,
	client client.Client, clusterName, componentNamespace string) Collector

Jump to

Keyboard shortcuts

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