podman-desktop / extension-minikube

Apache License 2.0
3 stars 10 forks source link

bug: minikube create `~/.minikube` folder when configuration home is configured. #242

Closed axel7083 closed 5 days ago

axel7083 commented 6 days ago

Raised by @tony-sol in https://github.com/podman-desktop/extension-minikube/issues/215#issuecomment-2488795392.

Reproduce

  1. start podman desktop
  2. assert latest minikube (0.5.0-next)
  3. set "minikube-home" preference to a valid folder Image
  4. stop podman desktop
  5. rm -r ~/.minikube/
  6. start podman desktop
  7. ls ~ -a | grep minikube is defined

Source of the issue

The following function

https://github.com/podman-desktop/extension-minikube/blob/2607b9525af9bfad77bd3f4e46b313e33e55c1d5/src/util.ts#L121-L124

It calls the minikube cli, however it do not provide the MINIKUBE_HOME env that it should, leading to minikube to defaulting to ~/.minikube.