diff --git a/pkg/addons/addons.go b/pkg/addons/addons.go index 42c96cbccb..c8d054613d 100644 --- a/pkg/addons/addons.go +++ b/pkg/addons/addons.go @@ -284,6 +284,9 @@ func EnableOrDisableAddon(cc *config.ClusterConfig, name string, val string) err crName := cc.KubernetesConfig.ContainerRuntime cr, err := cruntime.New(cruntime.Config{Type: crName, Runner: runner}) + if err != nil { + return errors.Wrap(err, "container runtime") + } runtimePaused, err := cluster.CheckIfPaused(cr, []string{"kube-system"}) if err != nil { return errors.Wrap(err, "check paused")