label

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// NodeHostnameLabelKey represents the name of node
	// This label is also used as part of the topology hierarchy
	NodeHostnameLabelKey = "kubernetes.io/hostname"
	// NodeRegionLabelKey represents a larger domain, made up of one or more zones
	NodeRegionLabelKey = "topology.kubernetes.io/region"
	// NodeZoneLabelKey represents a logical failure domain
	NodeZoneLabelKey = "topology.kubernetes.io/zone"
	// NameLabelKey represents the name of an application
	NameLabelKey string = "app.kubernetes.io/name"
	// ManagedByLabelKey represents the tool being used to manage the operation of an application
	ManagedByLabelKey string = "app.kubernetes.io/managed-by"
	// ComponentLabelKey represent the component within the architecture
	ComponentLabelKey string = "app.kubernetes.io/component"
	// ClusterLabelKey represents a unique name identifying the cluster of an application
	ClusterLabelKey string = "app.kubernetes.io/cluster"

	// NebulaOperator is ManagedByLabelKey label value
	NebulaOperator string = "nebula-operator"

	// GraphdLabelVal is graphd label value
	GraphdLabelVal string = "graphd"
	// MetadLabelVal is metad label value
	MetadLabelVal string = "metad"
	// StoragedLabelVal is storaged label value
	StoragedLabelVal string = "storaged"
	// ExporterLabelVal is exporter label value
	ExporterLabelVal string = "exporter"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label labels.Set

func New

func New() Label

func (Label) Cluster

func (l Label) Cluster(name string) Label

func (Label) Component

func (l Label) Component(name string) Label

func (Label) Copy

func (l Label) Copy() Label

func (Label) Exporter added in v1.4.1

func (l Label) Exporter() Label

func (Label) Graphd

func (l Label) Graphd() Label

func (Label) IsGraphd

func (l Label) IsGraphd() bool

func (Label) IsManagedByNebulaOperator

func (l Label) IsManagedByNebulaOperator() bool

func (Label) IsMetad

func (l Label) IsMetad() bool

func (Label) IsNebulaComponent

func (l Label) IsNebulaComponent() bool

func (Label) IsStoraged

func (l Label) IsStoraged() bool

func (Label) LabelSelector

func (l Label) LabelSelector() *metav1.LabelSelector

func (Label) Labels

func (l Label) Labels() Label

func (Label) Metad

func (l Label) Metad() Label

func (Label) Selector

func (l Label) Selector() (labels.Selector, error)

func (Label) Storaged

func (l Label) Storaged() Label

func (Label) String

func (l Label) String() string

Jump to

Keyboard shortcuts

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