Check compatibility and call func to output runtime

When minikube is started without kubernetes, check runtime is compatible and if so call func to output runtime and runtime version
pull/14200/head
Gimb0 2022-05-20 23:37:38 +10:00
parent 123c2bbf95
commit b8b62b9131
1 changed files with 8 additions and 1 deletions

View File

@ -97,7 +97,14 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
}
if stopk8s {
nv := semver.Version{Major: 0, Minor: 0, Patch: 0}
configureRuntimes(starter.Runner, *starter.Cfg, nv)
cr := configureRuntimes(starter.Runner, *starter.Cfg, nv)
if err = cruntime.CheckCompatibility(cr); err != nil {
return nil, err
}
showNotK8sVersionInfo(cr)
configureMounts(&wg, *starter.Cfg)
return nil, config.Write(viper.GetString(config.ProfileName), starter.Cfg)
}