From 4896b7c782d26730e4b6558788435f54cf00f1ba Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 1 Sep 2025 21:03:16 -0400 Subject: [PATCH] Warn instead of error on missing config version --- cli/app/deploy.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cli/app/deploy.go b/cli/app/deploy.go index 095a6a45..45a39eb5 100644 --- a/cli/app/deploy.go +++ b/cli/app/deploy.go @@ -193,6 +193,8 @@ checkout as-is. Recipe commit hashes are also supported as values for deployedVersion = deployMeta.Version } + // Gather secrets + secStats, err := secret.PollSecretsStatus(cl, app) if err != nil { log.Fatal(err) @@ -208,6 +210,8 @@ checkout as-is. Recipe commit hashes are also supported as values for secretInfo = append(secretInfo, fmt.Sprintf("%s: %s", secStat.LocalName, secStat.Version)) } + // Gather configs + // Get current configs from existing deployment currentConfigNames, err := client.GetConfigNamesForStack(cl, context.Background(), app.StackName()) if err != nil { @@ -234,7 +238,9 @@ checkout as-is. Recipe commit hashes are also supported as values for versionKey := strings.ToUpper(configName) + "_VERSION" newVersion, exists := abraShEnv[versionKey] if !exists { - log.Fatalf("No version found for config %s", configName) + log.Warnf("No version found for config %s", configName) + configInfo = append(configInfo, fmt.Sprintf("%s: ? (missing)", configName)) + continue } if currentVersion, exists := currentConfigs[configName]; exists { @@ -265,6 +271,7 @@ checkout as-is. Recipe commit hashes are also supported as values for ); err != nil { log.Fatal(err) } + // FIXME: just for debugging return stack.WaitTimeout, err = appPkg.GetTimeoutFromLabel(compose, stackName)