Skip to content

Commit 2c324b7

Browse files
committed
skip mounting on KIC
1 parent 2f29154 commit 2c324b7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/minikube/node/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"k8s.io/minikube/pkg/minikube/config"
3030
"k8s.io/minikube/pkg/minikube/constants"
3131
"k8s.io/minikube/pkg/minikube/cruntime"
32+
"k8s.io/minikube/pkg/minikube/driver"
3233
"k8s.io/minikube/pkg/minikube/exit"
3334
"k8s.io/minikube/pkg/minikube/localpath"
3435
"k8s.io/minikube/pkg/minikube/out"
@@ -55,7 +56,7 @@ func configureMounts(wg *sync.WaitGroup, cc config.ClusterConfig) {
5556
wg.Add(1)
5657
defer wg.Done()
5758

58-
if !cc.Mount {
59+
if !cc.Mount || driver.IsKIC(cc.Driver) {
5960
return
6061
}
6162

pkg/minikube/node/start.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
148148
}
149149
}
150150

151-
if !driver.IsKIC(starter.Cfg.Driver) {
152-
go configureMounts(&wg, *starter.Cfg)
153-
}
151+
go configureMounts(&wg, *starter.Cfg)
154152

155153
wg.Add(1)
156154
go func() {

0 commit comments

Comments
 (0)