translator

package
v0.3.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GimbalLabelBackend is the key of the label that contains the cluster name
	GimbalLabelBackend = "gimbal.heptio.com/backend"
)

Variables

This section is empty.

Functions

func AddGimbalLabels

func AddGimbalLabels(backendname, name string, existingLabels map[string]string) map[string]string

AddGimbalLabels returns a new set of labels that includes the incoming set of labels, plus gimbal-specific ones.

func BuildDiscoveredName added in v0.2.0

func BuildDiscoveredName(backendName, serviceName string) string

BuildDiscoveredName returns the discovered name of the service in a given cluster. If the name is longer than the Kubernetes DNS_LABEL maximum character limit, the name is shortened.

func ShortenKubernetesLabelValue added in v0.2.0

func ShortenKubernetesLabelValue(value string) string

ShortenKubernetesLabelValue ensures that the given string's length does not exceed the character limit imposed by Kubernetes. If it does, the label is shortened.

Types

This section is empty.

Jump to

Keyboard shortcuts

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