Skip to content

Commit

Permalink
Log driver version when validating driver
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zuyev committed Oct 21, 2020
1 parent 5fc73c7 commit 6c65c5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/minikube/driver/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/pkg/errors"

"k8s.io/klog/v2"

"k8s.io/minikube/pkg/minikube/download"
"k8s.io/minikube/pkg/minikube/out"
"k8s.io/minikube/pkg/minikube/style"
Expand Down Expand Up @@ -132,6 +133,7 @@ func validateDriver(executable string, v semver.Version) (string, error) {
if err != nil {
return path, errors.Wrap(err, "can't parse driver version")
}
klog.Infof("%s version is %s", path, driverVersion)

if driverVersion.LT(v) {
return path, fmt.Errorf("%s is version %s, want %s", executable, driverVersion, v)
Expand Down

0 comments on commit 6c65c5d

Please sign in to comment.