Documentation ¶
Index ¶
Constants ¶
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 ¶
Types ¶
type AppLabels ¶
type AppLabels struct { AppMatchLabels Component string Version string }
func NewAppLabels ¶
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 ¶
BuildLabels creates labels that include oneagent or activegate mode and version
func (*AppLabels) BuildMatchLabels ¶
BuildMatchLabels creates labels that don't change when switching oneagent or activegate mode
type AppMatchLabels ¶
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 ¶
BuildMatchLabels creates labels that don't change when switching operator versions