Giter VIP home page Giter VIP logo

Comments (6)

ryan-dyer-sp avatar ryan-dyer-sp commented on July 25, 2024 1

@stepanstipl Can confirm it works. Thanks!

from kube-no-trouble.

stepanstipl avatar stepanstipl commented on July 25, 2024

Hi @thomas-riccardi, thanks for opening this issue. I assume the "cross-file" context selection is something that works out of the box with kubectl, correct? I will have to check how that is implemented, but the idea is to behave in the same way, so it sounds like something we can look into.

Context selection makes sense. I think kubectl supports this via --context, but also --cluster and --user, flags. So probably something we can add (or at least context for a start).

from kube-no-trouble.

thomas-riccardi avatar thomas-riccardi commented on July 25, 2024

Hi @stepanstipl

I assume the "cross-file" context selection is something that works out of the box with kubectl, correct?

Yes; that's indeed a little bit surprising for k8s tools developers but it works transparently on kubectl.
It probably merges all yaml files into one config object (concat all arrays (clusters, contexts, users) (with dedup? error on conflict?) except current-context, which seems to be taken from the first file), then work from that as usual.
kubectl config view shows the parsed/merged config.

Context selection makes sense. I think kubectl supports this via --context, but also --cluster and --user, flags. So probably something we can add (or at least context for a start).

Personally I only use --context as --cluster probably also requires --user: slower to type. So starting with --context would be perfect for me :), and hopefully not just me.

from kube-no-trouble.

ryan-dyer-sp avatar ryan-dyer-sp commented on July 25, 2024

Just stumbled across this tool as something to investigate, but we also have the same issue; multiple kubeconfig files.

from kube-no-trouble.

stepanstipl avatar stepanstipl commented on July 25, 2024

@thomas-riccardi @ryan-dyer-sp Support for both multiple kubeconfig files and selecting context has now been added and is part of the latest 0.5.0 release. Please give it a go and let me know if there are any issues. Cheers 👍

from kube-no-trouble.

thomas-riccardi avatar thomas-riccardi commented on July 25, 2024

@stepanstipl I confirm this works in our setup, great with kubectx and explicit --context option, thx!

(though 0.5.0 broke --additional-kind: #204)

from kube-no-trouble.

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.