hostinfo

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// NormalizedRoleLabel is original Kubernetes label for role, we normalize the new one to this one
	NormalizedRoleLabel string = "kubernetes.io/role"
)

Variables

This section is empty.

Functions

func GetNodeClusterNameLabel

func GetNodeClusterNameLabel() (string, error)

GetNodeClusterNameLabel returns clustername by fetching a node label

func GetNodeLabels

func GetNodeLabels() (map[string]string, error)

GetNodeLabels returns node labels for this host

func GetTags

func GetTags() ([]string, error)

GetTags gets the tags from the kubernetes apiserver

func LabelPreprocessor

func LabelPreprocessor(labelName string, labelValue string) (string, string)

LabelPreprocessor ensure different role labels are parsed correctly

Types

This section is empty.

Jump to

Keyboard shortcuts

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