resources

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ApplicationNameLabelKey indicates the name of the application.
	ApplicationNameLabelKey = "app.kubernetes.io/name"
	// ApplicationInstanceLabelKey indicates a unique name identifying the instance of an application.
	ApplicationInstanceLabelKey = "app.kubernetes.io/instance"
	// ApplicationVersionLabelKey indicates the current version of the application.
	ApplicationVersionLabelKey = "app.kubernetes.io/version"
	// ApplicationComponentLabelKey indicates the component within the architecture of an application.
	ApplicationComponentLabelKey = "app.kubernetes.io/component"
	// ApplicationManagedByLabelKey indicates the tool being used to manage the operation of an application.
	ApplicationManagedByLabelKey = "app.kubernetes.io/managed-by"
	// ApplicationManagedByLabelValue is the specific tool being used to manage applications created by this project.
	ApplicationManagedByLabelValue = "distributed-compute-operator"
	// DescriptionAnnotationKey can be used to add extra information to a Kubernetes object via its annotations.
	DescriptionAnnotationKey = "distributed-compute.dominodatalab.com/description"
)

Variables

This section is empty.

Functions

func MetadataLabels

func MetadataLabels(name, instance, version string) map[string]string

MetadataLabels returns a map used to label Kubernetes resources.

func MetadataLabelsWithComponent

func MetadataLabelsWithComponent(name, instance, version, component string) map[string]string

MetadataLabelsWithComponent returns a map used to label Kubernetes resources that act as unique components.

func SelectorLabels

func SelectorLabels(name, instance string) map[string]string

SelectorLabels returns a map used to select Kubernetes objects that have been labeled with output from MetadataLabels.

func SelectorLabelsWithComponent

func SelectorLabelsWithComponent(name, instance, component string) map[string]string

SelectorLabelsWithComponent returns a map used to select Kubernetes objects that have been labeled with output from MetadataLabelsWithComponent.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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