func CreateKubeClient(kubeconfig string) (kubernetes.Interface, error) {
	// use the current context in kubeconfig
	config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
	if err != nil {
		return nil, err
	}
	// create the clientset
	client, err := kubernetes.NewForConfig(config)
	if err != nil {
		return nil, err
	}
	return client, nil
}
// CreateKubeClient Creates the kubernetes client using the kubeconfig path
CreateKubeClient Creates the kubernetes client using the kubeconfig path
// CreateKubeClient Creates the kubernetes client using the kubeconfig path
func CreateKubeClient(kubeconfig string) (kubernetes.Interface, error) {
	config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
	if err != nil {
		return nil, err
	}
	client, err := kubernetes.NewForConfig(config)
	if err != nil {
		return nil, err
	}
	return client, nil
}
func CreateKubeClient ( kubeconfig string ) ( kubernetes . Interface , error ) { config , err := clientcmd . BuildConfigFromFlags ( " " , kubeconfig ) if err != nil { return nil , err } client , err := kubernetes . NewForConfig ( config ) if err != nil { return nil , err } return client , nil }
CreateKubeClient Creates the kubernetes client using the kubeconfig path
CreateKubeClient Creates the kubernetes client using the kubeconfig path
// use the current context in kubeconfig // create the clientset