metadata

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ApplicationNameLabelKey indicates the name of the application.
	ApplicationNameLabelKey = "app.kubernetes.io/name"
	// ApplicationInstanceLabelKey indicates a unique name identifying the instance of an application.
	ApplicationInstanceLabelKey = "app.kubernetes.io/instance"
	// ApplicationVersionLabelKey indicates the current version of the application.
	ApplicationVersionLabelKey = "app.kubernetes.io/version"
	// ApplicationComponentLabelKey indicates the component within the architecture of an application.
	ApplicationComponentLabelKey = "app.kubernetes.io/component"
	// ApplicationPartOfLabelKey indicates the name of a higher level application this one is part of.
	ApplicationPartOfLabelKey = "app.kubernetes.io/part-of"
	// ApplicationManagedByLabelKey indicates the tool being used to manage the operation of an application.
	ApplicationManagedByLabelKey = "app.kubernetes.io/managed-by"
	// ApplicationCreatedByLabelKey indicates the controller/user who created this resource.
	ApplicationCreatedByLabelKey = "app.kubernetes.io/created-by"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppComponent

type AppComponent string
const AppComponentNone AppComponent = "none"

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(name string, opts ...ProviderOpt) *Provider

func (*Provider) InstanceName

func (p *Provider) InstanceName(obj client.Object, ac AppComponent) string

func (*Provider) MatchLabels

func (p *Provider) MatchLabels(obj client.Object, ac AppComponent) map[string]string

func (*Provider) StandardLabels

func (p *Provider) StandardLabels(obj client.Object, ac AppComponent, extra map[string]string) map[string]string

type ProviderOpt

type ProviderOpt func(p *Provider)

func WithCreator

func WithCreator(creator string) ProviderOpt

func WithDynamicLabels

func WithDynamicLabels(fn func(client.Object) map[string]string) ProviderOpt

func WithManager

func WithManager(manager string) ProviderOpt

func WithVersion

func WithVersion(fn func(client.Object) string) ProviderOpt

Jump to

Keyboard shortcuts

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