labels

package
v0.0.0-...-a06e19b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ReservedLabelHost          ReservedLabel = "reserved:host"
	ReservedLabelWorld         ReservedLabel = "reserved:world"
	ReservedLabelHealth        ReservedLabel = "reserved:health"
	ReservedLabelInit          ReservedLabel = "reserved:init"
	ReservedLabelRemoteNode    ReservedLabel = "reserved:remote-node"
	ReservedLabelUnmanaged     ReservedLabel = "reserved:unmanaged"
	ReservedLabelUnknown       ReservedLabel = "reserved:unknown"
	ReservedLabelKubeAPIServer ReservedLabel = "reserved:kube-apiserver"

	SpecialLabelKubeDNS    SpecialLabel = "k8s:k8s-app=kube-dns"
	SpecialLabelPrometheus SpecialLabel = "k8s:app=prometheus"
)

Variables

This section is empty.

Functions

func LabelAsKeyValue

func LabelAsKeyValue(lbl string, normalize bool) (string, string)

func NormalizeKey

func NormalizeKey(labelKey string) string

Types

type LabelProps

type LabelProps struct {
	IsHost          bool
	IsWorld         bool
	IsRemoteNode    bool
	IsKubeDNS       bool
	IsKubeAPIServer bool
	IsInit          bool
	IsHealth        bool
	IsPrometheus    bool
	AppName         *string
}

func Props

func Props(labels []string) *LabelProps

type ReservedLabel

type ReservedLabel string

type SpecialLabel

type SpecialLabel string

Jump to

Keyboard shortcuts

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