-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minikube 1.34.0 fails to start in GitHub Action #122
Comments
Minikube installation should be creating the directory (at least this is what happened until now). |
Hi! Also having this issue. Seems to be as a result of this change |
Awesome, thanks for looking this up. |
A release with the fix is now available (v2.12.0) |
What Happened?
We use Minikube in our CI pipeline, which worked fine until we upgraded the GitHub Actions workflow to use Minikube
1.34.0
from1.33.1
.TL;DR:
Error: Command failed: sudo chown -R $USER $HOME/.kube /home/runner/work/_temp/.minikube
Here is the error:
exception
It appears to fail on line 30 in
install.js
. Reverting back to Minikube1.33.1
works as expected.Here is an excerpt from our GitHub Actions workflow:
The OS is ubuntu-latest (Ubuntu 22.04), which is supported by actions-setup-minikube.
After a bit of debugging, it turns the folder
$HOME/.kube /home/runner/work/_temp/.minikube
didn't yet exist and so I simply added a pre-requisite step in the workflow to create the folder, which addressed the issue.mkdir -p $HOME/.kube /home/runner/work/_temp/.minikube
I assume a check can be added to ensure the directory exists before executing the command will resolve this issue. The fix MAY prefer to create the directory is it does not exist.
Attach the log file
exception
Operating System
Ubuntu
Driver
Docker
The text was updated successfully, but these errors were encountered: