hall / kubenix

Kubernetes management with Nix
https://kubenix.org/
MIT License
279 stars 27 forks source link

default kubeconfig to ~/.kube/config #49

Open hall opened 9 months ago

hall commented 9 months ago

closes #46

zarelit commented 9 months ago

I've branched from this PR and added a guard to not override KUBECONFIG coming from the user environment: https://github.com/hall/kubenix/pull/50

The quotation is tricky because it's inside runCommand and inside nix, the rendered script becomes:

export KUBECONFIG=${KUBECONFIG:-asd} when kubeconfig = asd

hall commented 7 months ago

Thanks @zarelit! Apologies for sitting on it so long but your change looks great.