label

package
v0.0.0-...-6515009 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 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"
	// CronBackupLabelKey is cron backup key
	CronBackupLabelKey string = "apps.nebula-graph.io/cron-backup"
	// BackupLabelKey is backup key
	BackupLabelKey string = "apps.nebula-graph.io/backup"

	// 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"
	// ConsoleLabelVal is exporter label value
	ConsoleLabelVal string = "console"

	// CleanJobLabelVal is clean job label value
	CleanJobLabelVal string = "clean"
	// BackupJobLabelVal is backup job label value
	BackupJobLabelVal string = "backup"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label labels.Set

func New

func New() Label

func (Label) Backup

func (l Label) Backup(val string) Label

func (Label) BackupJob

func (l Label) BackupJob() Label

func (Label) CleanJob

func (l Label) CleanJob() Label

func (Label) Cluster

func (l Label) Cluster(name string) Label

func (Label) Component

func (l Label) Component(name string) Label

func (Label) Console

func (l Label) Console() Label

func (Label) Copy

func (l Label) Copy() Label

func (Label) CronJob

func (l Label) CronJob(val string) Label

func (Label) Exporter

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