vcctl only reads the ~/.kube/config and neglects $KUBECONFIG #448
Labels
area/cli
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
Milestone
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
What happened:
When I created a local k8s cluster using
~/kubernetes/hack/local-up-cluster.sh
, the guideline suggested me toexport KUBECONFIG=/var/run/kubernetes/admin.kubeconfig
instead of creating a new config in~/.kube/
. Then thevcctl
command line reportedFailed to list job: stat /root/.kube/config: no such file or directory
and failed to execute.After I copyed the config file referred to $KUBECONFIG to
~/.kube/
,vcctl
run correctly. So I doubt that thevcctl
command line is set to read~/.kube/config
only and neglects the enviroment variable $KUBECONFIG.What you expected to happen:
When
vcctl
cannot find~/.kube/config
, it shall get $KUBECONFIG as an alternative.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
): v1.15.3uname -a
):The text was updated successfully, but these errors were encountered: