labeler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// ManagedLabelsAnnotation is name name of annotation which holds the managed labels
	ManagedLabelsAnnotation string `mapstructure:"managedLabelsAnnotation"`
	// ForbiddenLabelDomains holds the forbidden domain names, the labeler won't set matching labels
	ForbiddenLabelDomains []string `mapstructure:"forbiddenLabelDomains"`
}

type Labeler

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

Labeler describes the node labeler

func New

func New(config Config, clientset kubernetes.Interface, logger log.Logger, errorHandler emperror.Handler) *Labeler

New gives back an initialized Labeler

func (*Labeler) SyncLabels

func (l *Labeler) SyncLabels(node *api_v1.Node, labelsToSet map[string]string) error

SyncLabels syncs node labels

Jump to

Keyboard shortcuts

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