labels

package
v0.0.0-...-83429da Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRemoveLabelsCommand

func AddRemoveLabelsCommand(parent *cobra.Command)

AddRemoveLabelsCommand creates the cobra.Command.

func BuildRemoveLabelFilter

func BuildRemoveLabelFilter(predicate func(key string) bool) (yaml.Filter, error)

BuildRemoveLabelFilter builds a transform that removes labels matching the specificied predicate

Types

type RemoveLabel

type RemoveLabel struct {
	Labels []string `json:"labels"`
}

RemoveLabel describes a transform that removes labels.

func (RemoveLabel) Run

func (opt RemoveLabel) Run(ctx context.Context, resourceList *framework.ResourceList) error

Run applies the transform.

Jump to

Keyboard shortcuts

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