localityutils

package
v1.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterRegion

func GetClusterRegion(clusterName string, nodes corev1sets.NodeSet) (string, error)

Get the region of a cluster by the labels on any node associated with the cluster.

func GetServiceRegion

func GetServiceRegion(service *corev1.Service, pods corev1sets.PodSet, nodes corev1sets.NodeSet) (string, error)

Get the region where a service is running

func GetSubLocality

Get the zone and sub-zone (if it exists) of a node

Types

This section is empty.

Jump to

Keyboard shortcuts

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