stefanprodan / timoni

Timoni is a package manager for Kubernetes, powered by CUE and inspired by Helm.
https://timoni.sh
Apache License 2.0
1.53k stars 68 forks source link

Timoni fails to load kubeconfig when the KUBECONFIG environment variable contains multiple config paths #309

Closed algobot76 closed 9 months ago

algobot76 commented 9 months ago

OS: MacOS 14.2.1 (M3)

timoni version:

api: timoni.sh/v1alpha1 client: 0.18.0 cue: 0.7.0

image

I have an idea about how to support multi-path KUBECONFIG. I may submit a PR for this issue later next week.

stefanprodan commented 9 months ago

You could merge the two into a single file, then pass that to Timoni:

kubectl config view --flatten > merged.conf
timoni --kubeconfig=merged.conf
algobot76 commented 9 months ago

It works, but I think it could be better if it cloud select the corresponding config based on the current context.