func (k *KubeCtl) findKubeConfig() error {
	env := os.Getenv("KUBECONFIG")
	if env != "" {
		k.kubeConfigPath = env
		return nil
	}
	var err error
	k.kubeConfigPath, err = expand(configmanager.YuniKornTestConfig.KubeConfig)
	return err
}
findKubeConfig finds path from env:KUBECONFIG or ~/.kube/config
package k8s
import (
	"bytes"
	"context"
	"errors"
	"fmt"
	"os"
	"os/exec"
	"path/filepath"
	"time"
	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
	"github.com/apache/incubator-yunikorn-k8shim/test/e2e/framework/helpers/common"
	"k8s.io/apimachinery/pkg/util/wait"
	v1 "k8s.io/api/core/v1"
	authv1 "k8s.io/api/rbac/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"
	"k8s.io/client-go/rest"
	"k8s.io/client-go/tools/clientcmd"
	"github.com/apache/incubator-yunikorn-k8shim/test/e2e/framework/configmanager"
)
type KubeCtl struct {
	clientSet      *kubernetes.Clientset
	kubeConfigPath string
	kubeConfig     *rest.Config
}