IsContainerdRuntime -> IsRuntimeContainerd

pull/6990/head
Thomas Stromberg 2020-03-10 19:08:27 -07:00
parent bd627f13e4
commit 176c6551a8
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ var Addons = []*Addon{
{
name: "gvisor",
set: SetBool,
validations: []setFn{IsContainerdRuntime},
validations: []setFn{UsingContainerd},
callbacks: []setFn{enableOrDisableAddon},
},
{

View File

@ -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