Documentation ¶
Overview ¶
Package kubeutil implements a collection of utility functions to simplify various manipulations of Kubernetes data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentContextName ¶
CurrentContextName returns the name of cluster used in the current context.
func Namespaces ¶
func Namespaces(ulist *unstructured.UnstructuredList) []string
Namespaces returns the list of unique namespaces in an unstructured list.
func SplitGroupVersion ¶
SplitGroupVersion parses an "apiVersion" string and returns the group and version separately.
func UnstructuredToConfigMap ¶
func UnstructuredToConfigMap(u *unstructured.Unstructured) (*corev1.ConfigMap, error)
UnstructuredToConfigMap casts an unstructured object into a ConfigMap by serializing to JSON and deserializing into a ConfigMap.
Types ¶
Click to show internal directories.
Click to hide internal directories.