label

package
v0.0.0-...-1b34cb9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelHostname = "kubernetes.io/hostname"

	LabelTopologyZone    = "topology.kubernetes.io/zone"
	LabelTopologySubzone = "topology.istio.io/subzone"
	LabelTopologyRegion  = "topology.kubernetes.io/region"
)

copied from https://github.com/kubernetes/api/blob/master/core/v1/well_known_labels.go It is to remove dependency on k8s.io/api/core/v1

Variables

This section is empty.

Functions

func AugmentLabels

func AugmentLabels(in labels.Instance, clusterID cluster.ID, locality, k8sNode string, networkID network.ID) labels.Instance

AugmentLabels adds additional labels to the those provided.

func SplitLocalityLabel

func SplitLocalityLabel(locality string) (region, zone, subzone string)

SplitLocalityLabel splits a locality label into region, zone and subzone strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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