Skip to content

Commit

Permalink
Enabling metrics addon when someone enables dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Caderno <[email protected]>
  • Loading branch information
kadern0 committed Jul 26, 2020
1 parent d546ea1 commit 2808ebb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/minikube/cmd/config/enable.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ var addonsEnableCmd = &cobra.Command{
if err != nil {
exit.WithError("enable failed", err)
}
if addon == "dashboard" {
out.T(out.Waiting, "enabling metrics-server addon along with dashboard")
err = addons.SetAndSave(ClusterFlagValue(), "metrics-server", "true")
if err != nil {
exit.WithError("enable failed", err)
}
out.T(out.AddonEnable, "The 'metrics-server' addon is enabled")
}

out.T(out.AddonEnable, "The '{{.addonName}}' addon is enabled", out.V{"addonName": addon})
},
}
Expand Down

0 comments on commit 2808ebb

Please sign in to comment.