File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright 2019 The Kubernetes Authors All rights reserved.
2
+ Copyright 2016 The Kubernetes Authors All rights reserved.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
@@ -870,7 +870,7 @@ func validateDriverVersion(vmDriver string) {
870
870
871
871
// if the driver doesn't have return any version, it is really old, we force a upgrade.
872
872
if len (v ) == 0 {
873
- exit .WithCode (exit .Failure , "Please upgrade the 'docker-machine-driver-kvm2'." )
873
+ exit .WithCode (exit .Failure , "Please upgrade the 'docker-machine-driver-kvm2'. %s" , constants . KVMDocumentation )
874
874
}
875
875
876
876
vmDriverVersion , err := semver .Make (v )
@@ -886,13 +886,13 @@ func validateDriverVersion(vmDriver string) {
886
886
}
887
887
888
888
if vmDriverVersion .LT (minikubeVersion ) {
889
- console .Warning ("The 'docker-machine-driver-kvm2' version is old. Please consider upgrading." )
889
+ console .Warning ("The 'docker-machine-driver-kvm2' version is old. Please consider upgrading. %s" , constants . KVMDocumentation )
890
890
}
891
891
}
892
892
}
893
893
894
894
// extractVMDriverVersion extracts the driver version.
895
- // KVM and Hyperkit drivers support the ` version` command, that display the information as:
895
+ // KVM and Hyperkit drivers support the ' version' command, that display the information as:
896
896
// version: vX.X.X
897
897
// commit: XXXX
898
898
// This method returns the version 'vX.X.X' or empty if the version isn't found.
Original file line number Diff line number Diff line change 1
1
/*
2
- Copyright 2016 The Kubernetes Authors All rights reserved.
2
+ Copyright 2019 The Kubernetes Authors All rights reserved.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change @@ -431,3 +431,8 @@ const (
431
431
// GvisorURL is the url to download gvisor
432
432
GvisorURL = "https://storage.googleapis.com/gvisor/releases/nightly/2018-12-07/runsc"
433
433
)
434
+
435
+ const (
436
+ // KVMDocumentation the documentation of the KVM driver
437
+ KVMDocumentation = "https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver"
438
+ )
You can’t perform that action at this time.
0 commit comments