label

package
v2.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RunIDLabel          = "skaffold.dev/run-id"
	DebugContainerLabel = "skaffold.dev/debug"
)

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

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) DebugLabels added in v2.6.0

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

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