Avoid SIGSEGV when heapster addon will be disabled
parent
d76b58c3ae
commit
d7a9721712
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue