labelutils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterLabelKey = fmt.Sprintf("cluster.%s", v1.SchemeGroupVersion.Group)

the key used to differentiate discovery resources by the cluster in which they were discovered

View Source
var OwnershipLabelKey = fmt.Sprintf("owner.%s", v1.SchemeGroupVersion.Group)

Functions

func ClusterLabel

func ClusterLabel(cluster string) (string, string)

func ClusterLabels

func ClusterLabels(cluster string) map[string]string

Create a label that identifies the cluster used to discover a resource.

func OwnershipLabels

func OwnershipLabels() map[string]string

identifies the instance of gloo-mesh discovery that produced the resource. uses pod namespace to identify the instance. if running in an agent, (AGENT_CLUSTER is set)

Types

This section is empty.

Jump to

Keyboard shortcuts

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