nodes

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNodeInformer

func NewNodeInformer(ctx context.Context, clientset kubernetes.Interface) error

NewNodeInformer starts a new node informer.

func NewNodeLister

func NewNodeLister() listersv1.NodeLister

NewNodeLister returns a new node lister.

Types

type K3OSConfigFileUpdater added in v0.2.0

type K3OSConfigFileUpdater interface {
	Update(*configv1alpha1.K3OSConfigFileSpec) error
}

K3OSConfigFileUpdater handles updating the k3OS config file on disk.

func NewK3OSConfigFileUpdater added in v0.2.0

func NewK3OSConfigFileUpdater(configuration *config.Configuration) K3OSConfigFileUpdater

NewK3OSConfigFileUpdater returns an initialized K3OSConfigFileUpdater.

type Labeler

type Labeler interface {
	Reconcile(*corev1.Node, map[string]string) error
	UpdatedLabels() map[string]string
}

Labeler allows reconciling node labels.

func NewLabeler

func NewLabeler() Labeler

NewLabeler returns an initialized label reconciler.

type Tainter

type Tainter interface {
	Reconcile(*corev1.Node, []string) error
	UpdatedTaints() map[string]string // stringified taint => added/removed/changed
}

Tainter allows reconciling node taints.

func NewTainter

func NewTainter() Tainter

NewTainter returns an initialized taint reconciler.

Jump to

Keyboard shortcuts

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