label

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 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(ctx context.Context, labels map[string]string, results []deploy.Artifact, kubeContext string) error

Apply applies all provided labels to the created Kubernetes resources

Types

type Config added in v1.27.0

type Config interface {
	RunIDSelector() string
}

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, runID 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