diff --git a/cli/app/deploy.go b/cli/app/deploy.go index 6841923d..3fc06e16 100644 --- a/cli/app/deploy.go +++ b/cli/app/deploy.go @@ -238,7 +238,7 @@ Please note, "upgrade"/"rollback" do not support chaos operations.`, log.Debug("skipping domain checks as requested") } - deployedVersion := "N/A" + deployedVersion := config.NO_VERSION_DEFAULT if deployMeta.IsDeployed { deployedVersion = deployMeta.Version } diff --git a/cli/internal/deploy.go b/cli/internal/deploy.go index d3fe5a29..5485b91f 100644 --- a/cli/internal/deploy.go +++ b/cli/internal/deploy.go @@ -6,6 +6,7 @@ import ( "strings" appPkg "coopcloud.tech/abra/pkg/app" + "coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/formatter" "coopcloud.tech/abra/pkg/log" "github.com/AlecAivazis/survey/v2" @@ -55,7 +56,7 @@ func NewVersionOverview( domain := app.Domain if domain == "" { - domain = "N/A" + domain = config.NO_DOMAIN_DEFAULT } body := strings.Builder{} @@ -127,7 +128,7 @@ func DeployOverview( domain := app.Domain if domain == "" { - domain = "N/A" + domain = config.NO_DOMAIN_DEFAULT } rows := [][]string{ @@ -183,7 +184,7 @@ func UndeployOverview( domain := app.Domain if domain == "" { - domain = "N/A" + domain = config.NO_DOMAIN_DEFAULT } rows := [][]string{ diff --git a/pkg/config/abra.go b/pkg/config/abra.go index 1a7c6e03..8be06fea 100644 --- a/pkg/config/abra.go +++ b/pkg/config/abra.go @@ -107,5 +107,13 @@ var ( REPOS_BASE_URL = "https://git.coopcloud.tech/coop-cloud" CATALOGUE_JSON_REPO_NAME = "recipes-catalogue-json" SSH_URL_TEMPLATE = "ssh://git@git.coopcloud.tech:2222/coop-cloud/%s.git" - CHAOS_DEFAULT = "false" + + // NOTE(d1): please note, this was done purely out of laziness on our part + // AFAICR. it's easy to punt the value into the label because that is what is + // expects. it's not particularly useful in terms of UI/UX but hey, nobody + // complained yet! + CHAOS_DEFAULT = "false" + + NO_DOMAIN_DEFAULT = "N/A" + NO_VERSION_DEFAULT = "N/A" )