Closed hjpotter92 closed 6 months ago
@hjpotter92, the value set under KUBECONFIG
would be set to flag --kubeconfig
while invoking kubectl diff
internally.
I guess, setting the value containing multiple paths to --kubeconfig
is not working.
Can you share logs by enabling log level to debug
.
Also i'll try to reproduce this in my local for debugging.
@hjpotter92, As I mentioned above, we cannot pass the multiple files defined under environment variable KUBECONFIG
to flag --kubeconfig
; it just fails. Hence, I have added the validation to error out in such situations.
I've multiple clusters, split across several kubeconfig files.
kubectl
is able to handle these without issues with a kubeconfig env. var as follows:and i've not faced issue with this in other helm plugins i'm using (
helm-dashboard
). i wanted to givehelm-drift
a try, but it seems it fails to identify multiple kubeconfig files, and reports: