labels

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppNameLabel      = "app.kubernetes.io/name"
	AppCreatedByLabel = "app.kubernetes.io/created-by"
	AppManagedByLabel = "app.kubernetes.io/managed-by"
	AppComponentLabel = "app.kubernetes.io/component"
	AppVersionLabel   = "app.kubernetes.io/version"

	OneAgentComponentLabel    = "oneagent"
	ActiveGateComponentLabel  = "activegate"
	WebhookComponentLabel     = "webhook"
	EdgeConnectComponentLabel = "edgeconnect"
)

Variables

This section is empty.

Functions

func NotEqual

func NotEqual(currentLabels, desiredLabels map[string]string) bool

Types

type AppLabels

type AppLabels struct {
	AppMatchLabels
	Component string
	Version   string
}

func NewAppLabels

func NewAppLabels(appName, name, component, ver string) *AppLabels

NewAppLabels abstracts labels that are specific to an application managed by the operator which have their own version separate from the operator version. Follows the recommended label pattern: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels

func (*AppLabels) BuildLabels

func (labels *AppLabels) BuildLabels() map[string]string

BuildLabels creates labels that include oneagent or activegate mode and version

func (*AppLabels) BuildMatchLabels

func (labels *AppLabels) BuildMatchLabels() map[string]string

BuildMatchLabels creates labels that don't change when switching oneagent or activegate mode

type AppMatchLabels

type AppMatchLabels struct {
	Name      string
	CreatedBy string
	ManagedBy string
}

type CoreLabels

type CoreLabels struct {
	Version string
	// contains filtered or unexported fields
}

func NewCoreLabels

func NewCoreLabels(dynakubeName, component string) *CoreLabels

NewCoreLabels abstracts labels that are used for statefulsetreconciler functionality in the operator which are not specific to an application's version Follows the recommended label pattern: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels

func (*CoreLabels) BuildLabels

func (labels *CoreLabels) BuildLabels() map[string]string

BuildLabels creates labels that include operator version

func (*CoreLabels) BuildMatchLabels

func (labels *CoreLabels) BuildMatchLabels() map[string]string

BuildMatchLabels creates labels that don't change when switching operator versions

Jump to

Keyboard shortcuts

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