Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcctl only reads the ~/.kube/config and neglects $KUBECONFIG #448

Closed
jiangkaihua opened this issue Sep 11, 2019 · 4 comments · Fixed by #478
Closed

vcctl only reads the ~/.kube/config and neglects $KUBECONFIG #448

jiangkaihua opened this issue Sep 11, 2019 · 4 comments · Fixed by #478
Assignees
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

Comments

@jiangkaihua
Copy link
Contributor

jiangkaihua commented Sep 11, 2019

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 to export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig instead of creating a new config in ~/.kube/. Then the vcctl command line reported Failed 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 the vcctl 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:

  • Volcano Version: release-0.2
  • Kubernetes version (use kubectl version): v1.15.3
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): Ubuntu 18.04
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@hzxuzhonghu
Copy link
Collaborator

duplicate with #353

@k82cn k82cn added 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. labels Sep 12, 2019
@k82cn k82cn added this to the v0.3 milestone Sep 12, 2019
@Rui-Tang
Copy link
Contributor

I would like to work on it.

@Rui-Tang
Copy link
Contributor

So it just need to look for KUBECONFIG if default config file is missed. Is that correct?

@hzxuzhonghu
Copy link
Collaborator

/assign @tall49er

correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants