Comments (8)
Hi @danielfoehrKn,
Thank you very much - I'm of the idea that the more details I provide the easier the fix.
What the dang! I did some more troubleshooting based on the info you provided in your latest answer. And I have to admit that I've been the greatest of n00b's on this one. I was installing kubeswitch
by way of download the binary and moving it to the /usr/local/bin
folder. However, as I'm no longer - wisely so - not running as sudo on my Linux box - I had to run that install script for installing kubeswitch
as sudo - but that then resulted in kubeswitch
getting installed at an incorrect user scope.
So I read the docs again and I'm now using the brew
installation method.
Everything seems to work now.
I'm sorry for having basically almost wasted your time (I say almost because this fix is great).
Bare with me and have a great day - I think this one can be closed as solved.
from kubeswitch.
Hi, thanks for reporting!
Can you check if that fix works for you?
You would need to use the from source installation to test it.
If it works for you I ll incorporate it in the next patch version.
from kubeswitch.
from kubeswitch.
@larssb does the issue still exist or can this issue be closed?
from kubeswitch.
I'm very sorry @danielfoehrKn,
I've wanted to test this for a long long time (larssb here - just on GitHub via a comp. user). So, I still experience this issue and I don't know why.
The err.
when I execute switch
or /home/linuxbrew/.linuxbrew/opt/switcher/bin/switcher
>> Error: the configured kubeconfig directory "" does not exist
is thrown.
Again I find that I can get rid of the err. if I put a kubeconfig file named config
into the ~/.kube dir.
However, even though I've specified - "~/.kube/clusters/"
as the value to the paths:
parameter, a file named e.g. test
inside the - "~/.kube/clusters/"
dir. is not found by Kubeswitch. What am I misunderstanding?
Debug
.kube folder contents
ls -la
gives:
ls -la ~/.kube/
total 20
drwxr-xr-x 4 linuxlars linuxlars 4096 Aug 30 12:35 .
drwxr-xr-x 14 linuxlars linuxlars 4096 Aug 30 12:35 ..
drwxr-xr-x 2 linuxlars linuxlars 4096 Aug 30 12:33 clusters
-rw-r--r-- 1 linuxlars linuxlars 151 Aug 30 12:32 switch-config.yaml
drwxr-xr-x 2 linuxlars linuxlars 4096 Aug 30 11:47 switch-state
switch-config.yaml contents
kind: SwitchConfig
version: v1alpha1
kubeconfigName: "*"
hooks: []
kubeconfigStores:
- id: default
kind: filesystem
paths:
- "~/.kube/clusters/"
Regarding the patch
I'm not 100 percent. But, to me it looks like the patch you mention has been merged into master and thereby, as I run v0.4.6 of Kubeswith I should be good in this regard.
The err. message is also a tad different from the one I got back in March 21.
Am I right or do I still need to try out the patch by using the source installation method.
Thank you very much - and I'm looking forward to hear from you.
from kubeswitch.
@danielfoehrKn what is your take on this is I may.
Thank you π₯
from kubeswitch.
Hi @LarsBingBong thank again for reporting such a detailed issue.
when I execute switch or /home/linuxbrew/.linuxbrew/opt/switcher/bin/switcher >> Error: the configured kubeconfig directory "" does not exist is thrown.
I could reproduce that and pushed a fix that you could try out by installing it from source (just follow the instructions on the readme. Not more than git clone & make build-switcher
and then move the binary to your path). EDIT: I published release 0.4.7 that contains the fix.
However, even though I've specified - "
/.kube/clusters/" as the value to the paths: parameter, a file named e.g. test inside the - "/.kube/clusters/" dir. is not found by Kubeswitch. What am I misunderstanding?
I used your configuration file and created the ~/.kube/clusters/" directory with a valid kubeconfig with name test
.
Using the kubeswitch version 0.4.6 like you.
The kubeconfig was always found - I somehow cannot reproduce the issue :(
Is there an error or are the kubeconfig contexts just not found?
Things to look for
- does the user executing the switch script + binary have access (correct filesystem permissions) to both the configuration file as well as the
~/.kube/clusters/
directory? Same thing for the kubeconfig file? - can you provide a sanitized version of your kubeconfig file?
from kubeswitch.
Pointing to the latest comment from my comp. GitHub acc. I'll hereby close the issue.
from kubeswitch.
Related Issues (20)
- Bad index file - timing issue HOT 1
- Homebrew linux install "switch command not found" HOT 2
- glibc version not found HOT 12
- Unable to fetch namespaces HOT 2
- Build C compiler errors when building from source on RHEL v8.9 HOT 1
- Can't seem to get namespace per shell HOT 1
- My kubeconfigs are nested in subdirs in a single filestore ie auth/kubeconfig which confuses showPrefix HOT 1
- kubectx-like completion HOT 4
- Kubeswitch does not handle proxys HOT 3
- Let's call it a day and find ourselves a new fork of this tool HOT 4
- FR: Support Tanzu mission control HOT 2
- Add Linux ARM binaries HOT 1
- garden integration broken HOT 2
- [Feature Request] Return Namespaces from Cache to STDOUT.
- [Enhancement] `switch namespace <namespace>` should set the namespace without refresh if it exists in cache. HOT 1
- compdef: command not found HOT 1
- Custom Store from CLI Command HOT 1
- Add support for namespaces in aliases HOT 2
- [Enhancement] Support AWS SSO with automatic authentication refresh for AWS IAM Identity Center HOT 1
- aws eks named profile with kubeswitch store errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubeswitch.