Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
https://github.com/sbstp/kubie might be what you’re after. Manages kubeconfig files without having to merge them, also replaces kctx and kns commands.
See my other comment re: kconf. It's as simple as kconf add /my/file.conf. You could also pipe in from stdin (like if you're reading from Vault): vault kv get -field=kubeconfig /path/to/conf | kconf add.
Currently I'm searching for a good solution to managing multiple kubeconfigs on my local machine. I use a lot k9s and I have to switch a lot between different clusters and contexts. That switching I solved with kubectx https://github.com/ahmetb/kubectx
I haven't used it myself, but this might be what you're looking for? https://github.com/sunny0826/kubecm
I just read about this in the latest KubeWeekly: https://github.com/corneliusweig/konfig
You can check out https://github.com/danielfoehrKn/kubeswitch. Also comes with isolated terminal sessions + other advanced features such as history support and integration with GKE, AKS, Gardener, Vault & soon more.