Skip to content

Commit 4a335cb

Browse files
authored
Merge pull request #5026 from tstromberg/drvmnt
Restore --disable-driver-mounts flag
2 parents 1f48364 + 32c405d commit 4a335cb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

cmd/minikube/cmd/start.go

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ func initKubernetesFlags() {
169169
// initDriverFlags inits the commandline flags for vm drivers
170170
func initDriverFlags() {
171171
startCmd.Flags().String(vmDriver, constants.DefaultVMDriver, fmt.Sprintf("VM driver is one of: %v", constants.SupportedVMDrivers))
172+
startCmd.Flags().Bool(disableDriverMounts, false, "Disables the filesystem mounts provided by the hypervisors")
172173

173174
// kvm2
174175
startCmd.Flags().String(kvmNetwork, "default", "The KVM network name. (only supported with KVM driver)")

test/integration/start_stop_delete_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ func TestStartStop(t *testing.T) {
4444
name string
4545
args []string
4646
}{
47-
{"oldest", []string{ // nocache_oldest
47+
{"oldest", []string{
4848
"--cache-images=false",
4949
fmt.Sprintf("--kubernetes-version=%s", constants.OldestKubernetesVersion),
5050
// default is the network created by libvirt, if we change the name minikube won't boot
5151
// because the given network doesn't exist
5252
"--kvm-network=default",
5353
"--kvm-qemu-uri=qemu:///system",
5454
}},
55-
{"cni", []string{ // feature_gates_newest_cni
55+
{"cni", []string{
5656
"--feature-gates",
5757
"ServerSideApply=true",
5858
"--network-plugin=cni",
5959
"--extra-config=kubelet.network-plugin=cni",
6060
"--extra-config=kubeadm.pod-network-cidr=192.168.111.111/16",
6161
fmt.Sprintf("--kubernetes-version=%s", constants.NewestKubernetesVersion),
6262
}},
63-
{"containerd", []string{ // containerd_and_non_default_apiserver_port
63+
{"containerd", []string{
6464
"--container-runtime=containerd",
6565
"--docker-opt containerd=/var/run/containerd/containerd.sock",
6666
"--apiserver-port=8444",
6767
}},
68-
{"crio", []string{ // crio_ignore_preflights
68+
{"crio", []string{
6969
"--container-runtime=crio",
70-
"--extra-config",
71-
"kubeadm.ignore-preflight-errors=SystemVerification",
70+
"--disable-driver-mounts",
71+
"--extra-config=kubeadm.ignore-preflight-errors=SystemVerification",
7272
}},
7373
}
7474

0 commit comments

Comments
 (0)