Comments (7)
Sounds like kctx is actually something else. Can you run “which kctx” to verify?
from kubectx.
Tried on a different mac without using short names
error: converting to : type names don't match (Unknown, RawExtension), and no conversion 'func (runtime.Unknown, runtime.RawExtension) error' registered.
$ which kubectx
/usr/local/bin/kubectx```
from kubectx.
looks like this is coming from kubernetes. found a similar issue here. kubernetes/minikube#1618
I'm suspecting that this is an issue on your computer. Are you able to run kubectl get pods
or kubectl version
fine?
please run DEBUG=1 kctx
and print the output here.
from kubectx.
I am able to run kubectl version
and kubectl get pods
. Here's the DEBUG output
+ IFS='
'
+ KUBECTX=/Users/nsrinivasan/.kube/kubectx
+ main
+ [[ 0 -eq 0 ]]
+ list_contexts
+ set -u pipefail
+ local cur
++ current_context
++ kubectl config view '-o=jsonpath={.current-context}'
error: converting to : type names don't match (Unknown, RawExtension), and no conversion 'func (runtime.Unknown, runtime.RawExtension) error' registered.
+ cur=```
from kubectx.
Clearly the issue is in your kubectl config view '-o=jsonpath={.current-context}'
command. If you installed it with kubectx
, it would still fail.
- Run
kubectl config view '-o=jsonpath={.current-context}'
directly and tell me if it fails with that error. - Please paste the output of
kubectl config view
by redacting IPs and passwords etc (I'm interested in seeing if there's acurrent-context
field.
from kubectx.
I am able to run `kubectl config view '-o=jsonpath={.current-context}'
I realized I have an alias for kubectl , we have a custom binary used in our company which is packaged with kubectl. In my ~/.bashrc
my alias is alias kubectl = tess kubectl
. As this a unique use case . I'll try to figure out how to make it work for our use case.
We can close this issue.
from kubectx.
Figured out a work around by creating a fake executable under /usr/local/bin
~/./tess kubectl "$@"
from kubectx.
Related Issues (20)
- kubie and kubens mixed cause kubeconfig syntax error HOT 12
- 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
- Very slow with large number of contexts 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.