Skip to content

Commit

Permalink
Check compatibility and call func to output runtime
Browse files Browse the repository at this point in the history
When minikube is started without kubernetes, check runtime is compatible and if so call func to output runtime and runtime version
  • Loading branch information
Gimb0 committed May 20, 2022
1 parent 123c2bb commit b8b62b9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/minikube/node/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b8b62b9

Please sign in to comment.