hostinfo

package
v0.0.0-...-7983b3b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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(ctx context.Context) (string, error)

GetNodeClusterNameLabel returns clustername by fetching a node label

func GetNodeLabels

func GetNodeLabels(ctx context.Context) (map[string]string, error)

GetNodeLabels returns node labels for this host

func GetTags

func GetTags(ctx context.Context) ([]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