labels

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 21

Documentation

Overview

Package labels holds simple functions for working with ObjectMeta labels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteLabel

func DeleteLabel(meta *metav1.ObjectMeta, key string)

DeleteLabel removes a label from the ObjectMeta

func IsObjectLocalVisibility

func IsObjectLocalVisibility(meta *metav1.ObjectMeta) bool

IsObjectLocalVisibility returns whether an ObjectMeta is of cluster-local visibility

func SetLabel

func SetLabel(meta *metav1.ObjectMeta, key, value string)

SetLabel sets/update the label of the an ObjectMeta

func SetVisibility

func SetVisibility(meta *metav1.ObjectMeta, isClusterLocal bool)

SetVisibility sets the visibility on an ObjectMeta

Types

This section is empty.

Jump to

Keyboard shortcuts

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