Comments (12)
Which implementation of Kubectx do you use (bash script or go binary)?
from kubectx.
go binary
from kubectx.
I am quite confused as I havent seen this format before. If you can paste some kubeconfig snippets that can repro the problem, I am happy to take a look.
from kubectx.
My main kubeconfig (default location ~/.kube/config) contains 7 clusters. I cant share the datas, but simple multicluster setup, with openshift clusters and vanilla kubernetes.
The problem is showing only first time when move into kubie context. I need to patch file manually and after it everything is fine.
In my opinion, this problematic part could be an 'if', 'loop', 'func' at start, where some checking is processing, and one of it has a null return. it should be near there where you try to make the current context. it is just based on logic, i havent checked the code.
Can you give me advise how can make kubie more verbose logging?
Thanks,
Viktor
from kubectx.
You can always redact the kubeconfig file values and share its structure.
I'm not sure if your problem is with kubie or kubens, maybe file it at kubie repo as the error does not seem from kubens?
from kubectx.
it cannot be reproduced without kubens and vica versa.
when kubie starts and make the "new terminal" with different kubeconfig. It is proper.
Is it possible that kubens cannot grant the whole structure when get ~(default) namespace char. Im going to ask them.
from kubectx.
Hello,
I found the exact location of the error:
Kubie generates kubeconfig file with this
namespace: ~
Your kubens code is not tolerating this, it will be fullfilled with this (variable comes from choosen namespace, in this example default):
namespace: !!null default
The problem could be here or here
Would you help me about it?
Thanks,
Viktor
from kubectx.
As far as I know neither of those values are known to kubectl. Not sure why I should be fixing this. Can elaborate what they mean?
from kubectx.
I've just suggest to "fix" this, cause honestly it is not a bug in your application. If kubens can handle this kind of behaviour, your app could be more compatible with other tools, maybe it will be more popular (if it counts).
If you are not sure about fixing, I can check it also, and if I'll find something solution (modify code to tolerate '~' this character at namespace) I can contact you, and you can decide to merge or not.
from kubectx.
Are you sure kubectl tolerates ~ ?
I don't use kubie so I don't know what it means. I don't necessarily need code contributions, trying to understand.
from kubectx.
Im not sure about it, but, Ive tried with my kubeconfig, and it works. It could be a fallback, I dont know cause Google hasnt got any relevant information about this. kubectl config use-context that-one-has-symbol-at-namespace-field
is working for me with '~'
from kubectx.
Also I see kubie is an alternative to this tool. Not sure why you're using both at the same time. :)
from kubectx.
Related Issues (20)
- Are go versions still considered not stable? HOT 2
- Canβt use `--height` in fzf options on Windows HOT 2
- blank issue HOT 1
- Add --selector option to kubens HOT 1
- Feature Request: Use kubectx to use right version of kubectl binary for a given K8s cluster HOT 1
- `kubens` fails with `invalid apiVersion "client.authentication.k8s.io/v1"` but `kubectl` works normally HOT 2
- Vulnerability of dependency "golang.org/x/net" HOT 1
- Add completions for Nushell
- Add kubectl plugin installation to Homebrew formula HOT 4
- [Go] kubens not working with in-cluster config HOT 1
- show all of NAME, CLUSTER and AUTHINFO in cluster selection list HOT 2
- Allow customizing path to KUBECTX and KUBENS_DIR
- Homebrew install makes kubectx slow HOT 6
- Shell completions (for zsh) fail for kubectx if its binary is renamed to kx HOT 1
- Autocomplete does not work when installed as Krew plugin HOT 2
- Autocomplete breaks when multiple longer contexts match HOT 2
- kubectl ctx outputs code lines start with plus sign + HOT 1
- error: open /home/myuser/.kube/config: permission denied HOT 1
- Consider open up internal packages 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 kubectx.