nodeupdater

package
v0.0.0-...-aa771b6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeUpdater

type NodeUpdater interface {
	// Update labels the Kubernetes node with the pre-defined label to indicate
	// the physical host of the node.
	Update(node, host string) error

	// DeleteLabel removes the host label from the node
	DeleteLabel(node string) error
}

NodeUpdater updates a node with a label to indicate the physical host it is running on

func New

func New(client kubernetes.Interface) NodeUpdater

New creates a NodeUpdater instance

Jump to

Keyboard shortcuts

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