From d7a9721712d23ed850b384175762da94aa7726cb Mon Sep 17 00:00:00 2001 From: Kenta Iso Date: Thu, 11 Jun 2020 22:14:44 +0900 Subject: [PATCH] Avoid SIGSEGV when heapster addon will be disabled --- cmd/minikube/cmd/config/disable.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/minikube/cmd/config/disable.go b/cmd/minikube/cmd/config/disable.go index a77f44092d..08c5215dbd 100644 --- a/cmd/minikube/cmd/config/disable.go +++ b/cmd/minikube/cmd/config/disable.go @@ -33,6 +33,9 @@ var addonsDisableCmd = &cobra.Command{ } addon := args[0] + if addon == "heapster" { + exit.WithCodeT(exit.Unavailable, "There is no heapster addon") + } err := addons.SetAndSave(ClusterFlagValue(), addon, "false") if err != nil { exit.WithError("disable failed", err)