IsContainerdRuntime -> IsRuntimeContainerd
parent
bd627f13e4
commit
176c6551a8
|
@ -54,7 +54,7 @@ var Addons = []*Addon{
|
|||
{
|
||||
name: "gvisor",
|
||||
set: SetBool,
|
||||
validations: []setFn{IsContainerdRuntime},
|
||||
validations: []setFn{UsingContainerd},
|
||||
callbacks: []setFn{enableOrDisableAddon},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -33,8 +33,8 @@ and then start minikube again with the following flags:
|
|||
|
||||
minikube start --container-runtime=containerd --docker-opt containerd=/var/run/containerd/containerd.sock`
|
||||
|
||||
// IsContainerdRuntime is a validator which returns an error if the current runtime is not containerd
|
||||
func IsContainerdRuntime(cc *config.ClusterConfig, _, _ string) error {
|
||||
// IsRuntimeContainerd is a validator which returns an error if the current runtime is not containerd
|
||||
func IsRuntimeContainerd(cc *config.ClusterConfig, _, _ string) error {
|
||||
r, err := cruntime.New(cruntime.Config{Type: cc.KubernetesConfig.ContainerRuntime})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue