From 60bafd00fae4d87c6b3d41ad05cee2e37d87675a Mon Sep 17 00:00:00 2001 From: Ilya Zuyev Date: Wed, 10 Feb 2021 16:56:35 -0800 Subject: [PATCH] fix supported drivers list for darwin/arm64 --- pkg/minikube/driver/driver_darwin.go | 32 +++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/pkg/minikube/driver/driver_darwin.go b/pkg/minikube/driver/driver_darwin.go index 1eef33635d..168b3084d9 100644 --- a/pkg/minikube/driver/driver_darwin.go +++ b/pkg/minikube/driver/driver_darwin.go @@ -16,18 +16,30 @@ limitations under the License. package driver -import "os/exec" +import ( + "os/exec" + "runtime" +) // supportedDrivers is a list of supported drivers on Darwin. -var supportedDrivers = []string{ - VirtualBox, - Parallels, - VMwareFusion, - HyperKit, - VMware, - Docker, - SSH, -} +var supportedDrivers []string = func() []string { + if runtime.GOARCH == "arm64" { + // on darwin/arm64 only docker and ssh are supported yet + return []string{ + Docker, + SSH, + } + } + return []string{ + VirtualBox, + Parallels, + VMwareFusion, + HyperKit, + VMware, + Docker, + SSH, + } +}() func VBoxManagePath() string { cmd := "VBoxManage"