support mounting with the --no-kubernetes flag

pull/13144/head
Steven Powell 2021-11-22 11:00:44 -08:00
parent 3401be28a1
commit bc56e52f56
1 changed files with 2 additions and 1 deletions

View File

@ -90,11 +90,13 @@ type Starter struct {
// Start spins up a guest and starts the Kubernetes node.
func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
var wg sync.WaitGroup
stop8ks, err := handleNoKubernetes(starter)
if err != nil {
return nil, err
}
if stop8ks {
configureMounts(&wg, *starter.Cfg)
return nil, config.Write(viper.GetString(config.ProfileName), starter.Cfg)
}
@ -146,7 +148,6 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
}
}
var wg sync.WaitGroup
if !driver.IsKIC(starter.Cfg.Driver) {
go configureMounts(&wg, *starter.Cfg)
}