github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/pkg/authenticator/config.go (about) 1 package authenticator 2 3 import "k8s.io/client-go/tools/clientcmd" 4 5 func LoadKubeConfig(kubeConfig string) clientcmd.ClientConfig { 6 loadingRules := clientcmd.NewDefaultClientConfigLoadingRules() 7 loadingRules.ExplicitPath = kubeConfig 8 9 return clientcmd.NewNonInteractiveDeferredLoadingClientConfig(loadingRules, &clientcmd.ConfigOverrides{}) 10 }