Skip to content

Commit

Permalink
Rename kvm driver to kvm2
Browse files Browse the repository at this point in the history
  • Loading branch information
r2d4 committed Aug 28, 2017
1 parent 48b1658 commit 531e811
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ release-iso: minikube_iso checksum
gsutil cp out/minikube.iso gs://$(ISO_BUCKET)/minikube-$(ISO_VERSION).iso
gsutil cp out/minikube.iso.sha256 gs://$(ISO_BUCKET)/minikube-$(ISO_VERSION).iso.sha256

out/docker-machine-driver-kvm: $(KVM_DRIVER_FILES)
out/docker-machine-driver-kvm2: $(KVM_DRIVER_FILES)
go build \
-installsuffix "static" \
-ldflags "-X k8s.io/minikube/pkg/drivers/kvm/version.VERSION=$(VERSION)" \
-tags libvirt.1.2.2 \
-o $(BUILD_DIR)/docker-machine-driver-kvm \
-o $(BUILD_DIR)/docker-machine-driver-kvm2 \
k8s.io/minikube/cmd/drivers/kvm
chmod +X $@

.PHONY: install-kvm
install-kvm: out/docker-machine-driver-kvm
cp out/docker-machine-driver-kvm $(GOBIN)/docker-machine-driver-kvm
install-kvm: out/docker-machine-driver-kvm2
cp out/docker-machine-driver-kvm2 $(GOBIN)/docker-machine-driver-kvm2
2 changes: 1 addition & 1 deletion hack/jenkins/linux_integration_tests_kvm_alt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
set -e

OS_ARCH="linux-amd64"
VM_DRIVER="kvm"
VM_DRIVER="kvm2"
JOB_NAME="Linux-KVM-Alt"

# Download files and set permissions
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func createHost(api libmachine.API, config MachineConfig) (*host.Host, error) {
driver = createVirtualboxHost(config)
case "vmwarefusion":
driver = createVMwareFusionHost(config)
case "kvm":
case "kvm", "kvm2":
driver = createKVMHost(config)
case "xhyve":
driver = createXhyveHost(config)
Expand Down
1 change: 1 addition & 0 deletions pkg/minikube/constants/constants_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
var SupportedVMDrivers = [...]string{
"virtualbox",
"kvm",
"kvm2",
"none",
}

Expand Down

0 comments on commit 531e811

Please sign in to comment.