component-helpersk8s.io/component-helpers/node/topology Index | Files

package topology

import "k8s.io/component-helpers/node/topology"

Index

Functions

func GetZoneKey

func GetZoneKey(node *v1.Node) string

GetZoneKey is a helper function that builds a string identifier that is unique per failure-zone; it returns empty-string for no zone. Since there are currently two separate zone keys:

GetZoneKey will first check failure-domain.beta.kubernetes.io/zone and if not exists, will then check topology.kubernetes.io/zone

Source Files

helpers.go

Version
v0.22.6
Published
Jan 19, 2022
Platform
js/wasm
Imports
1 packages
Last checked
19 minutes ago

Tools for package owners.