Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetaToTags ¶
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.
Click to show internal directories.
Click to hide internal directories.