Skip to content

Commit 7ad24d4

Browse files
committed
chore: rename CheckPaused to VerifyNotPaused
1 parent 67fdcf1 commit 7ad24d4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd/minikube/cmd/config/disable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var addonsDisableCmd = &cobra.Command{
3333
if len(args) != 1 {
3434
exit.Message(reason.Usage, "usage: minikube addons disable ADDON_NAME")
3535
}
36-
err := addons.CheckPaused(ClusterFlagValue(), false)
36+
err := addons.VerifyNotPaused(ClusterFlagValue(), false)
3737
if err != nil {
3838
exit.Error(reason.InternalAddonDisablePaused, "disable failed", err)
3939
}

cmd/minikube/cmd/config/enable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var addonsEnableCmd = &cobra.Command{
3939
if len(args) != 1 {
4040
exit.Message(reason.Usage, "usage: minikube addons enable ADDON_NAME")
4141
}
42-
err := addons.CheckPaused(ClusterFlagValue(), true)
42+
err := addons.VerifyNotPaused(ClusterFlagValue(), true)
4343
if err != nil {
4444
exit.Error(reason.InternalAddonEnablePaused, "enabled failed", err)
4545
}

pkg/addons/addons.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ func UpdateConfigToDisable(cc *config.ClusterConfig) {
581581
}
582582
}
583583

584-
// CheckPaused checks whether the cluster is paused before enable/disable an addon.
585-
func CheckPaused(profile string, enable bool) error {
584+
// VerifyNotPaused verifies the cluster is not paused before enable/disable an addon.
585+
func VerifyNotPaused(profile string, enable bool) error {
586586
klog.Info("checking whether the cluster is paused")
587587

588588
cc, err := config.Load(profile)

0 commit comments

Comments
 (0)