Comments (6)
@stepanstipl Can confirm it works. Thanks!
from kube-no-trouble.
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.
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.
Just stumbled across this tool as something to investigate, but we also have the same issue; multiple kubeconfig files.
from kube-no-trouble.
@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.
@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)
- Multi Tenant Shared EKS cluster HOT 3
- Entries appear that are not in config HOT 5
- Multiple additional kinds of the same resource are not respected HOT 2
- Failure to retrieve AKS cluster resources - kubelogin not found HOT 1
- PodSecurityPolicy Deprecation Not Detected HOT 4
- Skip already removed APIs HOT 2
- Add FAQ explaining potential false positives HOT 7
- Depreciation api call triggered in the kubernetes migration notification window HOT 2
- New release HOT 3
- Missing kubectl.kubernetes.io/last-applied-configuration Annotation in Kubernetes Resources and Inclusion in kubectl Reports HOT 2
- WRN failed to discover supported resources for policy/v1beta1 HOT 3
- Feature request - validate helm charts HOT 2
- kubeconfig context feature does not work in 0.7.1 version HOT 1
- Autofix using a --fix or --autofix flag HOT 2
- Distinguish between deprecated / removed apis in CI mode error code HOT 2
- Kubent cause AWS EKS upgrade warning HOT 4
- Helm charts scanning for deprecated APIs HOT 2
- Missing kubernetes 1.28 deprecations HOT 3
- Unable to give multiple manifest files for scanning HOT 3
- [BUG] Kubent reports updated manifests as outdated if their last applied configuration is outdated
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 kube-no-trouble.