tags

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaToTags

func MetaToTags(kind string, meta metav1.Object) ([]string, error)

MetaToTags extracts tags for structured Kubernetes objects based on kind and metadata. Use UnstructuredTotags for unstructured objects. Kind string (e.g Deployment, Pod) needs to be provided manually by the caller, see https://github.com/kubernetes/client-go/issues/541 Results are cached in-memory for 1 hour.

func UnstructuredTotags

func UnstructuredTotags(obj *unstructured.Unstructured) ([]string, error)

UnstructuredTotags extracts tags for an unstructured Kubernetes objects. Use MetaToTags for structured objects. Results are cached in-memory for 1 hour.

Types

This section is empty.

Jump to

Keyboard shortcuts

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