label

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sManagedByLabelKey = "app.kubernetes.io/managed-by"
	RunIDLabel           = "skaffold.dev/run-id"
)

Variables

This section is empty.

Functions

func Apply

func Apply(labels map[string]string, results []deploy.Artifact) error

Apply applies all provided labels to the created Kubernetes resources

Types

type DefaultLabeller

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

DefaultLabeller adds K8s style managed-by label and a run-specific UUID label

func NewLabeller

func NewLabeller(addSkaffoldLabels bool, customLabels []string) *DefaultLabeller

func (*DefaultLabeller) GetRunID

func (d *DefaultLabeller) GetRunID() string

func (*DefaultLabeller) Labels

func (d *DefaultLabeller) Labels() map[string]string

func (*DefaultLabeller) RunIDSelector

func (d *DefaultLabeller) RunIDSelector() string

Jump to

Keyboard shortcuts

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