Help us shape the future of Go! Take the 2026 Go Developer Survey

labels

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

func Update

func Update(ll, update Labels)

Types

type Labels

type Labels map[string]string

func Common

func Common(cluster *api.CrdbCluster) Labels

func FromObject

func FromObject(obj runtime.Object) (Labels, error)

func (Labels) ApplyTo

func (ll Labels) ApplyTo(obj runtime.Object) error

func (Labels) AsMap

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

func (Labels) Copy

func (ll Labels) Copy() Labels

func (Labels) Merge

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

func (Labels) Selector

func (ll Labels) Selector() map[string]string

Jump to

Keyboard shortcuts

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