ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.71k stars 1.26k forks source link

kubectx kubens in centos7 run error #36

Closed haozi4263 closed 6 years ago

haozi4263 commented 6 years ago

error log: /usr/local/bin/kubectx: line 30: /usr/local/bin/../include/utils.bash: No such file or directory

ahmetb commented 6 years ago

@haozi4263 how did you install?

We recently deleted utils.bash. So if you're getting the latest kubectx/kubens scripts from this repo, you shouldn't be seeing this error.

haozi4263 commented 6 years ago

wget https://github.com/ahmetb/kubectx/archive/v0.4.0.tar.gz cp kubens kubectx /usr/local/bin

ahmetb commented 6 years ago

ah! that would require you to cp utils.bash /usr/local/include/. this is no longer necessary but we haven't tagged a new version yet.

can you use master instead (https://github.com/ahmetb/kubectx/archive/master.tar.gz)?

haozi4263 commented 6 years ago

ok use https://github.com/ahmetb/kubectx/archive/master.tar.gz is ok thanks!