label

package
v1.39.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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 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