You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, if you pass an empty string to the resolver, it will always return username/.kube/config.
Reason being on line 41, it checks if the string is still empty, attempts to stat and empty string (which will always fail), and then assigns the kubeconfig string to a statically defined kubeconfig file which doesn't exist in in-cluster configurations.
This prevents using Istio in a Kubernetes In-cluster config.
Basically using the method with an empty string always returns an error:
kubernetes configuration file "/root/.kube/config" does not exist