nodelabels

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

NodeLabels

NodeLabels is a narrow-scoped tool which manages the number of kubernetes nodes which have the configured label (key + value). Any node which already has a label of the same key will be ignored. The number of nodes with the requested label will be increased or decreased as necessary to match the desired count.

There is a binary in cmd/nodelabels and a slightly more generic library in the root.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Watch(ctx context.Context, sig chan struct{}) error

	List(ctx context.Context) ([]*corev1.Node, error)

	Reconcile(ctx context.Context, desiredCount int) error
}

Manager provides

func NewFilteredManager added in v0.2.0

func NewFilteredManager(kc *k8s.Client, key, val, filterKey, filterVal string) Manager

NewFilteredManager returns a new node manager which will filter nodes based on the given key-value label set

func NewManager

func NewManager(kc *k8s.Client, key, val string) Manager

NewManager returns a new node manager, providing high-level control over a set of node labels

Directories

Path Synopsis
cmd
nodelabels command

Jump to

Keyboard shortcuts

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