From edff63b446535bc027f76837210287782fcb4b22 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 7 Mar 2023 13:10:57 +0100 Subject: [PATCH] Revert "review: change label autoupdate -> auto-update" This reverts commit 74baa76f5ee5e5dd7b71b1f14be97cc40dfc611b. --- cli/updater/updater.go | 2 +- pkg/config/app.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/updater/updater.go b/cli/updater/updater.go index 7a48273e..ef297cde 100644 --- a/cli/updater/updater.go +++ b/cli/updater/updater.go @@ -403,7 +403,7 @@ func tryUpgrade(cl *dockerclient.Client, stackName, recipeName string, conf *run return nil } - updatesEnabled, err := getBoolLabel(cl, stackName, "auto-update") + updatesEnabled, err := getBoolLabel(cl, stackName, "autoupdate") if err != nil { return err } diff --git a/pkg/config/app.go b/pkg/config/app.go index 8b8ba218..4921d8ee 100644 --- a/pkg/config/app.go +++ b/pkg/config/app.go @@ -414,7 +414,7 @@ func GetAppStatuses(apps []App, MachineReadable bool) (map[string]map[string]str result["chaosVersion"] = chaosVersion } - labelKey = fmt.Sprintf("coop-cloud.%s.auto-update", name) + labelKey = fmt.Sprintf("coop-cloud.%s.autoupdate", name) if autoUpdate, ok := service.Spec.Labels[labelKey]; ok { result["autoUpdate"] = autoUpdate } else { @@ -538,8 +538,8 @@ func SetUpdateLabel(compose *composetypes.Config, stackName string, appEnv AppEn if !exists { enable_auto_update = "false" } - logrus.Debugf("set label 'coop-cloud.%s.auto-update' to %s for %s", stackName, enable_auto_update, stackName) - labelKey := fmt.Sprintf("coop-cloud.%s.auto-update", stackName) + logrus.Debugf("set label 'coop-cloud.%s.autoupdate' to %s for %s", stackName, enable_auto_update, stackName) + labelKey := fmt.Sprintf("coop-cloud.%s.autoupdate", stackName) service.Deploy.Labels[labelKey] = enable_auto_update } }