Code Monkey home page Code Monkey logo

Comments (7)

ahmetb avatar ahmetb commented on May 19, 2024

Sounds like kctx is actually something else. Can you run “which kctx” to verify?

from kubectx.

natraj09 avatar natraj09 commented on May 19, 2024

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.

ahmetb avatar ahmetb commented on May 19, 2024

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.

natraj09 avatar natraj09 commented on May 19, 2024

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.

ahmetb avatar ahmetb commented on May 19, 2024

Clearly the issue is in your kubectl config view '-o=jsonpath={.current-context}' command. If you installed it with kubectx , it would still fail.

  1. Run kubectl config view '-o=jsonpath={.current-context}' directly and tell me if it fails with that error.
  2. Please paste the output of kubectl config view by redacting IPs and passwords etc (I'm interested in seeing if there's a current-context field.

from kubectx.

natraj09 avatar natraj09 commented on May 19, 2024

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.

natraj09 avatar natraj09 commented on May 19, 2024

Figured out a work around by creating a fake executable under /usr/local/bin

~/./tess kubectl  "$@"

from kubectx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.