-
Notifications
You must be signed in to change notification settings - Fork 25
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
Docker Desktop's kubectl interferes with Hokusai's #349
Comments
More ideas:
|
Possibly another occurrence. In this case it's also an M1 user, but there's no
I can confirm on my local Mac (Intel) that latest Hokusai version doesn't produce that error, but |
Here's one case where a user's
|
Given that we have seen Docker Desktop causing
We might have to have Hokusai invoke How is that path determined?
So at kubectl-invoke time, Hokusai can use the same path that was used for that option. This is currently not possible because Hokusai does not keep track of that option's value. A way is required for Hokusai to "remember" that value. We can accomplish that by introducing a user Hokusai config file (e.g.
Then |
More about the potential
|
There has been cases where a Mac user's PATH points to the
kubectl
[installed by Docker Desktop](https://docs.docker.com/desktop/kubernetes/), and not to/usr/local/bin/kubectl
(installed by Hokusai). So far we've seen this for M1 users.In one case, Docker Desktop's
kubectl
lives in~/.docker/...
and this dir is listed at the very beginning of user's PATH. The user's Shell init script (in this case, forzsh
) has been modified by Docker Desktop tosource
a file which presumably did that to the PATH. The work-around for this specific case is to comment out thesource
or add a line in the Shell init script toward the bottom to undo that PATH change, but this is cumbersome and might not survive the next Docker Desktop install/update.I am not sure what Hokusai can do to totally solve the problem, but some ideas for mitigation:
Currently
hokusai check
simply checks thatwhich kubectl
returns no error. We can have it read the returned path and warn if it's not/usr/local/bin
, which can help user notice a path problem.Currently
hokusai configure
copies the downloadedkubectl
to/usr/local/bin/kubectl
. Perhaps it's feasible to name the executable differently in/usr/local/bin
, for example,hokusai_kubectl
, then there should no longer be any conflict with Docker Desktop. The problem is that if user ever has to run kubectl directly, the user must know abouthokusai_kubectl
.The text was updated successfully, but these errors were encountered: