code: func (c *Endpoint) KubernetesConfig() clientcmd.ClientConfig {
  	cfg := clientcmdapi.NewConfig()
  	cluster := clientcmdapi.NewCluster()
  	cluster.Server = c.Host
  	cluster.InsecureSkipTLSVerify = c.SkipTLSVerify
  	authInfo := clientcmdapi.NewAuthInfo()
  	if c.TLSData != nil {
  		cluster.CertificateAuthorityData = c.TLSData.CA
  		authInfo.ClientCertificateData = c.TLSData.Cert
  		authInfo.ClientKeyData = c.TLSData.Key
  	}
  	authInfo.AuthProvider = c.AuthProvider
  	authInfo.Exec = c.Exec
  	cfg.Clusters["cluster"] = cluster
  	cfg.AuthInfos["authInfo"] = authInfo
  	ctx := clientcmdapi.NewContext()
  	ctx.AuthInfo = "authInfo"
  	ctx.Cluster = "cluster"
  	ctx.Namespace = c.DefaultNamespace
  	cfg.Contexts["context"] = ctx
  	cfg.CurrentContext = "context"
  	return clientcmd.NewDefaultClientConfig(*cfg, &clientcmd.ConfigOverrides{})
  }
docs: // KubernetesConfig creates the kubernetes client config from the endpoint