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.
Click to show internal directories.
Click to hide internal directories.