Skip to content
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

vm-driver-none fallback detection #4868

Closed
chris-hammond opened this issue Oct 7, 2020 · 1 comment · Fixed by #4887
Closed

vm-driver-none fallback detection #4868

chris-hammond opened this issue Oct 7, 2020 · 1 comment · Fixed by #4887
Labels
area/deploy kind/bug Something isn't working platform/minikube priority/p1 High impact feature/bug.
Milestone

Comments

@chris-hammond
Copy link

It looks like minkube changed the error code returned when trying to run minikube docker-env using --vm-driver='none' from 64 to 51. (Why??!!) For obvious reasons, this breaks skaffold when used with minikube in this configuration.

Expected behavior

When using skaffold deploy with older versions of minikube (e.g. v1.12.3) running --vm-driver='none', the following message is displayed:

WARN[0000] Could not get minikube docker env, falling back to local docker daemon: getting minikube env: running [/usr/local/bin/minikube docker-env --shell none -p minikube]
 - stdout: ""
 - stderr: "* 'none' driver does not support 'minikube docker-env' command\n"
 - cause: exit status 64
Fallback should function the same with the latest version of minikube.

Actual behavior

The following error occurs when running skaffold deploy:

creating runner: creating builder: getting docker client: getting minikube env: running [/usr/local/bin/minikube docker-env --shell none -p minikube]
- stdout: "\n\n"
- stderr: "X Exiting due to ENV_DRIVER_CONFLICT: 'none' driver does not support 'minikube docker-env' command\n"
- cause: exit status 51

Information

  • Skaffold version: 1.14.0 and 1.15.0
  • Minikube version: 1.13.1

Steps to reproduce the behavior

Using any skaffold project with minikube v1.13.1 running as --vm-driver='none', run skaffold deploy.

@briandealwis briandealwis added area/deploy kind/bug Something isn't working platform/minikube priority/p1 High impact feature/bug. labels Oct 9, 2020
@briandealwis
Copy link
Member

briandealwis commented Oct 9, 2020

This was changed with kubernetes/minikube#9126 in minikube 1.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy kind/bug Something isn't working platform/minikube priority/p1 High impact feature/bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants