IsContainerdRuntime -> IsRuntimeContainerd
parent
bd627f13e4
commit
176c6551a8
|
@ -54,7 +54,7 @@ var Addons = []*Addon{
|
||||||
{
|
{
|
||||||
name: "gvisor",
|
name: "gvisor",
|
||||||
set: SetBool,
|
set: SetBool,
|
||||||
validations: []setFn{IsContainerdRuntime},
|
validations: []setFn{UsingContainerd},
|
||||||
callbacks: []setFn{enableOrDisableAddon},
|
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`
|
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
|
// IsRuntimeContainerd is a validator which returns an error if the current runtime is not containerd
|
||||||
func IsContainerdRuntime(cc *config.ClusterConfig, _, _ string) error {
|
func IsRuntimeContainerd(cc *config.ClusterConfig, _, _ string) error {
|
||||||
r, err := cruntime.New(cruntime.Config{Type: cc.KubernetesConfig.ContainerRuntime})
|
r, err := cruntime.New(cruntime.Config{Type: cc.KubernetesConfig.ContainerRuntime})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue