hall / kubenix

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

default kubeconfig to ~/.kube/config #49

Open hall opened 11 months ago

hall commented 11 months ago

closes #46

zarelit commented 11 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 10 months ago

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