kubeconfig

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfAuthInfoExist

func CheckIfAuthInfoExist(kubeConfig *clientcmdApi.Config, authInfo string) error

func CheckIfClusterExist

func CheckIfClusterExist(kubeConfig *clientcmdApi.Config, cluster string) error

func CheckIfContextExist

func CheckIfContextExist(kubeConfig *clientcmdApi.Config, context string) error

func GetAuthInfosKeys

func GetAuthInfosKeys(auths map[string]*clientcmdApi.AuthInfo) []string

func GetClustersKeys

func GetClustersKeys(clusters map[string]*clientcmdApi.Cluster) []string

func GetContextsKeys

func GetContextsKeys(contexts map[string]*clientcmdApi.Context) []string

func GetKubeConfigEnvVar

func GetKubeConfigEnvVar() string

func GetKubeConfigPathDefault

func GetKubeConfigPathDefault(home string) string

func GetSingleConfigsPathDefault

func GetSingleConfigsPathDefault(home string) string

func ListContexts

func ListContexts(kubeConfig *clientcmdApi.Config) []string

func Load

func Load(kubeConfigFilePath string) *clientcmdApi.Config

func PrintOnLogs

func PrintOnLogs(kCfg *clientcmdApi.Config, isDebug bool)

PrintOnLogs is for development and debugging purposes only

func RemoveAuthInfo

func RemoveAuthInfo(authMap map[string]*clientcmdApi.AuthInfo, authInfo string) (map[string]*clientcmdApi.AuthInfo, error)

func RemoveCluster

func RemoveCluster(clMap map[string]*clientcmdApi.Cluster, cluster string) (map[string]*clientcmdApi.Cluster, error)

func RemoveContext

func RemoveContext(ctxMap map[string]*clientcmdApi.Context, context string) (map[string]*clientcmdApi.Context, error)

func Split

func Split(kubeConfig *clientcmdApi.Config, kubeConfigFilePath string) map[string]*clientcmdApi.Config

func Validate

func Validate(kubeConfig *clientcmdApi.Config) error

func Write

func Write(kubeConfig *clientcmdApi.Config, filepath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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