labels

package
v0.4.20-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NameKey The name of a higher level application this one is part of
	NameKey = "app.kubernetes.io/name"
	// InstanceKey A unique name identifying the instance of an application
	InstanceKey = "app.kubernetes.io/instance"
	// ComponentKey The component within the architecture
	ComponentKey = "app.kubernetes.io/component"
	// PartOfKey The name of a higher level application this one is part of
	PartOfKey = "app.kubernetes.io/part-of"
	// ManagedByKey The tool being used to manage the operation of an application
	ManagedByKey = "app.kubernetes.io/managed-by"

	// ServiceComponent The specialization of a Service resource
	ServiceComponent = "ydb.tech/service-for"

	StorageComponent = "storage-node"
	DynamicComponent = "dynamic-node"

	GRPCComponent         = "grpc"
	InterconnectComponent = "interconnect"
	StatusComponent       = "status"
	DatastreamsComponent  = "datastreams"
)

https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

Variables

This section is empty.

Functions

This section is empty.

Types

type Labels

type Labels map[string]string

func Common

func Common(name string, defaultLabels Labels) Labels

func DatabaseLabels

func DatabaseLabels(database *v1alpha1.Database) Labels

func StorageLabels

func StorageLabels(cluster *v1alpha1.Storage) Labels

func (Labels) AsMap

func (l Labels) AsMap() map[string]string

func (Labels) Copy

func (l Labels) Copy() Labels

func (Labels) Merge

func (l Labels) Merge(other map[string]string) map[string]string

func (Labels) MergeInPlace

func (l Labels) MergeInPlace(other map[string]string) map[string]string

Jump to

Keyboard shortcuts

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