k3s-io / k3s-ansible

Apache License 2.0
2.01k stars 802 forks source link

do not blindly overwrite kube config #263

Closed roivanov closed 10 months ago

roivanov commented 10 months ago

Changes

Merge with existing kube config, do not overwrite existing file

Linked Issues

259

One issue still needs to be addressed is when cluster names are identical

zen commented 10 months ago

Guys, why not allow user to define kubeconfig location? We use multiple configs and export KUBECONFIG based on project - it's very convenient

dereknola commented 10 months ago

@zen I'm happy to open another future PR to address that case. I did think it was weird that this project originally overrode the base kubeconfig, but I kept it in because I didn't know if users actually liked that or what.