abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
17.75k stars 365 forks source link

Write kubeconfig to KUBECONFIG defined file #978

Open Sumoa opened 5 months ago

Sumoa commented 5 months ago

Currently when starting a vm + k8s cluster the kubeconfig is always written to "~/.kube/config" which is the default path. By defining the env variable "KUBECONFIG" it is possible to override the default path. This does currently not apply to colima. As it is possible to configure multiple locations with "KUBECONFIG" I opted to always use the first configured one as the location to save the config.

abiosoft commented 3 months ago

@Sumoa can you kindly rebase? I fixed the broken CI.