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

update-context not working when using KUBECONFIG #5944

Closed
lucanaldini opened this issue Nov 19, 2019 · 2 comments · Fixed by #6090
Closed

update-context not working when using KUBECONFIG #5944

lucanaldini opened this issue Nov 19, 2019 · 2 comments · Fixed by #6090
Assignees
Labels
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. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@lucanaldini
Copy link

The exact command to reproduce the issue:
➜ sudo -i env CHANGE_MINIKUBE_NONE_USER=true MINIKUBE_HOME=/home/somewhere KUBECONFIG=/tmp/.somewhereelse/config minikube start --vm-driver=none
...
➜ KUBECONFIG=/tmp/.somewhereelse/config minikube start
...
➜ KUBECONFIG=/tmp/.somewhereelse/config minikube status
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
➜ KUBECONFIG=/tmp/.somewhereelse/config minikube update-context

The full output of the command that failed:
💣 update config: Kubeconfig does not have a record of the machine cluster
😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new/choose

The output of the minikube logs command:
No new logs are logged when update-context is run.

The operating system version:
centos 7

If I run KUBECONFIG=/tmp/.somewhereelse/config kubectx, minikube context is present though.
The idea was to run minikube update-context (without the KUBECONFIG env variable) so that my default kubectx would know about minikube context too. But that fails too with the same output pasted above.

@tstromberg tstromberg added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/backlog Higher priority than priority/awaiting-more-evidence. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels Nov 20, 2019
@govargo
Copy link
Contributor

govargo commented Dec 3, 2019

I will work on this(if someone don’t take)

It may take time to complete this.

/assign

@medyagh
Copy link
Member

medyagh commented Dec 16, 2019

this is being worked on by @govargo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants