metadata

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 3 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

This section is empty.

Types

type Component

type Component string

Component is used to drive Kubernetes object generation for different types.

const ComponentNone Component = "none"

ComponentNone indicates a generic resource.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(name string, version versionExtractor, globalLabels globalLabelsFn) *Provider

func (*Provider) InstanceName

func (p *Provider) InstanceName(obj client.Object, comp Component) string

func (*Provider) MatchLabels

func (p *Provider) MatchLabels(obj client.Object) map[string]string

func (*Provider) MatchLabelsWithComponent

func (p *Provider) MatchLabelsWithComponent(obj client.Object, comp Component) map[string]string

func (*Provider) StandardLabels

func (p *Provider) StandardLabels(obj client.Object) map[string]string

func (*Provider) StandardLabelsWithComponent

func (p *Provider) StandardLabelsWithComponent(obj client.Object, comp Component, extraLabels map[string]string) map[string]string

Jump to

Keyboard shortcuts

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