managedlabel

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ManagedByKubeAdmiralLabelValue   = "true"
	UnmanagedByKubeAdmiralLabelValue = "false"
)

Variables

View Source
var ManagedByKubeAdmiralLabelKey = common.DefaultPrefix + "managed"

Functions

func AddManagedLabel

func AddManagedLabel(obj *unstructured.Unstructured)

AddManagedLabel ensures that the given object has the managed label.

func HasManagedLabel

func HasManagedLabel(obj *unstructured.Unstructured) bool

HasManagedLabel indicates whether the given object has the managed label.

func IsExplicitlyUnmanaged

func IsExplicitlyUnmanaged(obj *unstructured.Unstructured) bool

IsExplicitlyUnmanaged indicates whether the given object has the managed label with value false.

func RemoveManagedLabel

func RemoveManagedLabel(obj *unstructured.Unstructured)

RemoveManagedLabel ensures that the given object does not have the managed label.

Types

This section is empty.

Jump to

Keyboard shortcuts

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