Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandEnv ¶
ExpandEnv takes a string and replaces all environment variables with their values ~ is expanded to the user's home directory
func GetContextsNamesFromKubeconfig ¶
func GetContextsNamesFromKubeconfig(kubeconfigBytes []byte, contextPrefix string) (*string, []string, error)
GetContextsNamesFromKubeconfig takes kubeconfig bytes and parses the kubeconfig to extract the context names. returns the kubeconfig as a string as a first argument, and the context names as a second argument
func ParseSanitizedKubeconfig ¶
func ParseSanitizedKubeconfig(data []byte) (*types.KubeConfig, error)
ParseSanitizedKubeconfig parses the kubeconfig bytes into a kubeconfig struct without credentials
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.