fix: chaos handling fixes #674

Merged
decentral1se merged 13 commits from fix/668 into main 2025-10-01 07:01:02 +00:00
15 changed files with 296 additions and 255 deletions

View File

@ -3,6 +3,7 @@ package app
import (
"context"
"errors"
"fmt"
"strings"
"coopcloud.tech/abra/cli/internal"
@ -103,18 +104,17 @@ checkout as-is. Recipe commit hashes are also supported as values for
toDeployVersion, err = getDeployVersion(args, deployMeta, app)
if err != nil {
log.Fatal(i18n.G("get deploy version: %s", err))
log.Fatal(err)
}
versionIsChaos := false
if !internal.Chaos {
var err error
versionIsChaos, err = app.Recipe.EnsureVersion(toDeployVersion)
isChaosCommit, err := app.Recipe.EnsureVersion(toDeployVersion)
if err != nil {
log.Fatal(i18n.G("ensure recipe: %s", err))
}
if versionIsChaos {
if isChaosCommit {
log.Warnf(i18n.G("version '%s' appears to be a chaos commit, but --chaos/-C was not provided", toDeployVersion))
internal.Chaos = true
}
}
@ -154,12 +154,23 @@ checkout as-is. Recipe commit hashes are also supported as values for
appPkg.ExposeAllEnv(stackName, compose, app.Env)
appPkg.SetRecipeLabel(compose, stackName, app.Recipe.Name)
appPkg.SetChaosLabel(compose, stackName, internal.Chaos || versionIsChaos)
appPkg.SetChaosLabel(compose, stackName, internal.Chaos)
if internal.Chaos {
appPkg.SetChaosVersionLabel(compose, stackName, toDeployVersion)
}
appPkg.SetUpdateLabel(compose, stackName, app.Env)
appPkg.SetVersionLabel(compose, stackName, toDeployVersion)
versionLabel := toDeployVersion
if internal.Chaos {
for _, service := range compose.Services {
if service.Name == "app" {
labelKey := fmt.Sprintf("coop-cloud.%s.version", stackName)
// NOTE(d1): keep non-chaos version labbeling when doing chaos ops
versionLabel = service.Deploy.Labels[labelKey]
}
}
}
appPkg.SetVersionLabel(compose, stackName, versionLabel)
envVars, err := appPkg.CheckEnv(app)
if err != nil {
@ -189,6 +200,9 @@ checkout as-is. Recipe commit hashes are also supported as values for
deployedVersion := config.NO_VERSION_DEFAULT
if deployMeta.IsDeployed {
deployedVersion = deployMeta.Version
if deployMeta.IsChaos {
deployedVersion = deployMeta.ChaosVersion
}
}
// Gather secrets
@ -348,7 +362,12 @@ func getDeployVersion(cliArgs []string, deployMeta stack.DeployMeta, app appPkg.
// Check if the recipe has a version in the .env file
if app.Recipe.EnvVersion != "" && !internal.DeployLatest {
if strings.HasSuffix(app.Recipe.EnvVersionRaw, "+U") {
return "", errors.New(i18n.G("version: can not redeploy chaos version %s", app.Recipe.EnvVersionRaw))
// NOTE(d1): use double-line 5 spaces ("FATA ") trick to make a more
// informative error message. it's ugly but that's our logging situation
// atm
return "", errors.New(i18n.G(`cannot redeploy previous chaos version (%s), did you mean to use "--chaos"?
to return to a regular release, specify a release tag, commit SHA or use "--latest"`,
formatter.BoldDirtyDefault(app.Recipe.EnvVersionRaw)))
}
log.Debug(i18n.G("version: taking version from .env file: %s", app.Recipe.EnvVersion))
return app.Recipe.EnvVersion, nil

View File

@ -203,10 +203,15 @@ beforehand. See "abra app backup" for more.`),
log.Fatal(err)
}
deployedVersion := deployMeta.Version
if deployMeta.IsChaos {
deployedVersion = deployMeta.ChaosVersion
}
// NOTE(d1): no release notes implemeneted for rolling back
if err := internal.DeployOverview(
app,
deployMeta.Version,
deployedVersion,
chosenDowngrade,
"",
downgradeWarnMessages,

View File

@ -65,9 +65,14 @@ Passing "--prune/-p" does not remove those volumes.`),
log.Fatal(i18n.G("%s is not deployed?", app.Name))
}
version := deployMeta.Version
if deployMeta.IsChaos {
version = deployMeta.ChaosVersion
}
if err := internal.DeployOverview(
app,
deployMeta.Version,
version,
config.NO_DOMAIN_DEFAULT,
"",
nil,
@ -110,7 +115,7 @@ Passing "--prune/-p" does not remove those volumes.`),
log.Info(i18n.G("undeploy succeeded 🟢"))
if err := app.WriteRecipeVersion(deployMeta.Version, false); err != nil {
if err := app.WriteRecipeVersion(version, false); err != nil {
log.Fatal(i18n.G("writing recipe version failed: %s", err))
}
},

View File

@ -241,9 +241,14 @@ beforehand. See "abra app backup" for more.`),
)
}
deployedVersion := deployMeta.Version
if deployMeta.IsChaos {
deployedVersion = deployMeta.ChaosVersion
}
if err := internal.DeployOverview(
app,
deployMeta.Version,
deployedVersion,
chosenUpgrade,
upgradeReleaseNotes,
upgradeWarnMessages,

View File

@ -143,29 +143,37 @@ func getDeployType(currentVersion, newVersion string) string {
if newVersion == config.NO_DOMAIN_DEFAULT {
return i18n.G("UNDEPLOY")
}
if strings.Contains(newVersion, "+U") {
return i18n.G("CHAOS DEPLOY")
}
if strings.Contains(currentVersion, "+U") {
return i18n.G("UNCHAOS DEPLOY")
}
if currentVersion == newVersion {
return ("REDEPLOY")
}
if currentVersion == config.NO_VERSION_DEFAULT {
return i18n.G("NEW DEPLOY")
}
currentParsed, err := tagcmp.Parse(currentVersion)
if err != nil {
return i18n.G("DEPLOY")
}
newParsed, err := tagcmp.Parse(newVersion)
if err != nil {
return i18n.G("DEPLOY")
}
if currentParsed.IsLessThan(newParsed) {
return i18n.G("UPGRADE")
}
return i18n.G("DOWNGRADE")
}

View File

@ -116,10 +116,10 @@ var (
DIRTY_DEFAULT = "+U"
NO_DOMAIN_DEFAULT = "N/A"
NO_VERSION_DEFAULT = "N/A"
NO_SECRETS_DEFAULT = "N/A"
NO_VOLUMES_DEFAULT = "N/A"
NO_DOMAIN_DEFAULT = "-"
NO_VERSION_DEFAULT = "-"
NO_SECRETS_DEFAULT = "-"
NO_VOLUMES_DEFAULT = "-"
UNKNOWN_DEFAULT = "unknown"
)

View File

@ -7,7 +7,7 @@
msgid ""
msgstr "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2025-09-30 19:20+0200\n"
"POT-Creation-Date: 2025-10-01 08:53+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -111,7 +111,7 @@ msgid " # run <cmd> with args/flags\n"
" abra app run 1312.net app --user nobody -- ls -lha"
msgstr ""
#: ./cli/app/deploy.go:41
#: ./cli/app/deploy.go:42
msgid " # standard deployment\n"
" abra app deploy 1312.net\n"
"\n"
@ -226,7 +226,7 @@ msgstr ""
msgid "%s does not exist for %s, use /bin/sh as fallback"
msgstr ""
#: ./cli/app/cmd.go:114 ./cli/internal/deploy.go:241
#: ./cli/app/cmd.go:114 ./cli/internal/deploy.go:249
#, c-format
msgid "%s does not exist for %s?"
msgstr ""
@ -311,7 +311,7 @@ msgstr ""
msgid "%s inserted into pass store"
msgstr ""
#: ./cli/app/deploy.go:101
#: ./cli/app/deploy.go:102
#, c-format
msgid "%s is already deployed"
msgstr ""
@ -336,17 +336,17 @@ msgstr ""
msgid "%s is missing the TYPE env var?"
msgstr ""
#: ./cli/app/rollback.go:301 ./cli/app/rollback.go:305
#: ./cli/app/rollback.go:306 ./cli/app/rollback.go:310
#, c-format
msgid "%s is not a downgrade for %s?"
msgstr ""
#: ./cli/app/upgrade.go:422 ./cli/app/upgrade.go:426
#: ./cli/app/upgrade.go:427 ./cli/app/upgrade.go:431
#, c-format
msgid "%s is not an upgrade for %s?"
msgstr ""
#: ./cli/app/logs.go:65 ./cli/app/ps.go:62 ./cli/app/restart.go:100 ./cli/app/services.go:55 ./cli/app/undeploy.go:65 ./cli/app/upgrade.go:443 ./cli/updater/updater.go:260
#: ./cli/app/logs.go:65 ./cli/app/ps.go:62 ./cli/app/restart.go:100 ./cli/app/services.go:55 ./cli/app/undeploy.go:65 ./cli/app/upgrade.go:448 ./cli/updater/updater.go:260
#, c-format
msgid "%s is not deployed?"
msgstr ""
@ -361,7 +361,7 @@ msgstr ""
msgid "%s is still deployed. Run \"abra app undeploy %s\""
msgstr ""
#: ./cli/app/deploy.go:172 ./cli/app/upgrade.go:209
#: ./cli/app/deploy.go:183 ./cli/app/upgrade.go:209
#, c-format
msgid "%s missing from %s.env"
msgstr ""
@ -531,12 +531,12 @@ msgstr ""
msgid "%s: waiting %d seconds before next retry"
msgstr ""
#: ./cli/app/upgrade.go:417
#: ./cli/app/upgrade.go:422
#, c-format
msgid "'%s' is not a known version"
msgstr ""
#: ./cli/app/rollback.go:296 ./cli/app/upgrade.go:412
#: ./cli/app/rollback.go:301 ./cli/app/upgrade.go:417
#, c-format
msgid "'%s' is not a known version for %s"
msgstr ""
@ -607,7 +607,7 @@ msgstr ""
msgid "Both local recipe and live deployment labels are shown."
msgstr ""
#: ./cli/app/backup.go:319 ./cli/app/backup.go:335 ./cli/app/check.go:95 ./cli/app/cmd.go:285 ./cli/app/cp.go:385 ./cli/app/deploy.go:375 ./cli/app/labels.go:143 ./cli/app/new.go:397 ./cli/app/ps.go:213 ./cli/app/restart.go:162 ./cli/app/restore.go:138 ./cli/app/secret.go:569 ./cli/app/secret.go:609 ./cli/app/secret.go:633 ./cli/app/secret.go:641 ./cli/catalogue/catalogue.go:318 ./cli/recipe/lint.go:137 ./cli/updater/updater.go:538
#: ./cli/app/backup.go:319 ./cli/app/backup.go:335 ./cli/app/check.go:95 ./cli/app/cmd.go:285 ./cli/app/cp.go:385 ./cli/app/deploy.go:394 ./cli/app/labels.go:143 ./cli/app/new.go:397 ./cli/app/ps.go:213 ./cli/app/restart.go:162 ./cli/app/restore.go:138 ./cli/app/secret.go:569 ./cli/app/secret.go:609 ./cli/app/secret.go:633 ./cli/app/secret.go:641 ./cli/catalogue/catalogue.go:318 ./cli/recipe/lint.go:137 ./cli/updater/updater.go:538
msgid "C"
msgstr ""
@ -615,7 +615,7 @@ msgstr ""
msgid "CHAOS"
msgstr ""
#: ./cli/internal/deploy.go:147
#: ./cli/internal/deploy.go:148
msgid "CHAOS DEPLOY"
msgstr ""
@ -753,11 +753,11 @@ msgid "Creates a new app from a default recipe.\n"
"on your $PATH."
msgstr ""
#: ./cli/app/deploy.go:391 ./cli/app/new.go:373 ./cli/app/rollback.go:353 ./cli/app/upgrade.go:463
#: ./cli/app/deploy.go:410 ./cli/app/new.go:373 ./cli/app/rollback.go:358 ./cli/app/upgrade.go:468
msgid "D"
msgstr ""
#: ./cli/internal/deploy.go:160 ./cli/internal/deploy.go:164
#: ./cli/internal/deploy.go:165 ./cli/internal/deploy.go:170
msgid "DEPLOY"
msgstr ""
@ -765,20 +765,20 @@ msgstr ""
msgid "DEPLOYED LABELS"
msgstr ""
#: ./cli/app/list.go:222 ./cli/internal/deploy.go:78 ./cli/internal/deploy.go:200
#: ./cli/app/list.go:222 ./cli/internal/deploy.go:78 ./cli/internal/deploy.go:208
msgid "DOMAIN"
msgstr ""
#: ./cli/internal/deploy.go:169
#: ./cli/internal/deploy.go:177
msgid "DOWNGRADE"
msgstr ""
#. translators: Short description for `app deploy` command
#: ./cli/app/deploy.go:35
#: ./cli/app/deploy.go:36
msgid "Deploy an app"
msgstr ""
#: ./cli/app/deploy.go:36
#: ./cli/app/deploy.go:37
msgid "Deploy an app.\n"
"\n"
"This command supports chaos operations. Use \"--chaos/-C\" to deploy your recipe\n"
@ -993,7 +993,7 @@ msgstr ""
msgid "List volumes associated with an app"
msgstr ""
#: ./cli/internal/deploy.go:208
#: ./cli/internal/deploy.go:216
msgid "MOVE OVERVIEW"
msgstr ""
@ -1064,7 +1064,7 @@ msgstr ""
msgid "NAME"
msgstr ""
#: ./cli/internal/deploy.go:156
#: ./cli/internal/deploy.go:160
msgid "NEW DEPLOY"
msgstr ""
@ -1072,7 +1072,7 @@ msgstr ""
msgid "NEW DEPLOYMENT"
msgstr ""
#: ./cli/internal/deploy.go:203
#: ./cli/internal/deploy.go:211
msgid "NEW SERVER"
msgstr ""
@ -1092,7 +1092,7 @@ msgid "Notify on new versions for deployed apps.\n"
"Use \"--major/-m\" to include new major versions."
msgstr ""
#: ./cli/internal/deploy.go:202
#: ./cli/internal/deploy.go:210
msgid "OLD SERVER"
msgstr ""
@ -1120,7 +1120,7 @@ msgstr ""
msgid "README.md metadata filled in"
msgstr ""
#: ./cli/app/list.go:222 ./cli/internal/deploy.go:79 ./cli/internal/deploy.go:201
#: ./cli/app/list.go:222 ./cli/internal/deploy.go:79 ./cli/internal/deploy.go:209
msgid "RECIPE"
msgstr ""
@ -1240,7 +1240,7 @@ msgstr ""
msgid "S"
msgstr ""
#: ./cli/internal/deploy.go:99 ./cli/internal/deploy.go:204
#: ./cli/internal/deploy.go:99 ./cli/internal/deploy.go:212
msgid "SECRETS"
msgstr ""
@ -1456,11 +1456,11 @@ msgid "To load completions:\n"
" # and source this file from your PowerShell profile."
msgstr ""
#: ./cli/app/deploy.go:415 ./cli/app/rollback.go:369 ./cli/app/upgrade.go:487
#: ./cli/app/deploy.go:434 ./cli/app/rollback.go:374 ./cli/app/upgrade.go:492
msgid "U"
msgstr ""
#: ./cli/internal/deploy.go:150
#: ./cli/internal/deploy.go:152
msgid "UNCHAOS DEPLOY"
msgstr ""
@ -1468,7 +1468,7 @@ msgstr ""
msgid "UNDEPLOY"
msgstr ""
#: ./cli/app/list.go:228 ./cli/internal/deploy.go:167
#: ./cli/app/list.go:228 ./cli/internal/deploy.go:174
msgid "UPGRADE"
msgstr ""
@ -1594,7 +1594,7 @@ msgstr ""
msgid "VERSION"
msgstr ""
#: ./cli/internal/deploy.go:205
#: ./cli/internal/deploy.go:213
msgid "VOLUMES"
msgstr ""
@ -1856,7 +1856,7 @@ msgstr ""
msgid "attempting to run %s"
msgstr ""
#: ./cli/app/deploy.go:257 ./cli/app/upgrade.go:289
#: ./cli/app/deploy.go:271 ./cli/app/upgrade.go:294
#, c-format
msgid "attempting to run post deploy commands, saw: %s"
msgstr ""
@ -1881,7 +1881,7 @@ msgstr ""
msgid "autocomplete [bash|zsh|fish|powershell]"
msgstr ""
#: ./cli/app/deploy.go:64 ./cli/app/logs.go:39 ./cli/app/rollback.go:64 ./cli/app/secret.go:49 ./cli/app/secret.go:191 ./cli/app/secret.go:360 ./cli/app/upgrade.go:63 ./pkg/autocomplete/autocomplete.go:18 ./pkg/autocomplete/autocomplete.go:33 ./pkg/autocomplete/autocomplete.go:44 ./pkg/autocomplete/autocomplete.go:50 ./pkg/autocomplete/autocomplete.go:70 ./pkg/autocomplete/autocomplete.go:88 ./pkg/autocomplete/autocomplete.go:104 ./pkg/autocomplete/autocomplete.go:110 ./pkg/autocomplete/autocomplete.go:125
#: ./cli/app/deploy.go:65 ./cli/app/logs.go:39 ./cli/app/rollback.go:64 ./cli/app/secret.go:49 ./cli/app/secret.go:191 ./cli/app/secret.go:360 ./cli/app/upgrade.go:63 ./pkg/autocomplete/autocomplete.go:18 ./pkg/autocomplete/autocomplete.go:33 ./pkg/autocomplete/autocomplete.go:44 ./pkg/autocomplete/autocomplete.go:50 ./pkg/autocomplete/autocomplete.go:70 ./pkg/autocomplete/autocomplete.go:88 ./pkg/autocomplete/autocomplete.go:104 ./pkg/autocomplete/autocomplete.go:110 ./pkg/autocomplete/autocomplete.go:125
#, c-format
msgid "autocomplete failed: %s"
msgstr ""
@ -1946,7 +1946,7 @@ msgstr ""
#. no spaces in between
#. translators: `abra app cp` aliases. use a comma separated list of aliases with
#. no spaces in between
#: ./cli/app/backup.go:148 ./cli/app/cp.go:30 ./cli/app/deploy.go:399 ./cli/app/rollback.go:361 ./cli/app/upgrade.go:471
#: ./cli/app/backup.go:148 ./cli/app/cp.go:30 ./cli/app/deploy.go:418 ./cli/app/rollback.go:366 ./cli/app/upgrade.go:476
msgid "c"
msgstr ""
@ -1954,11 +1954,6 @@ msgstr ""
msgid "can not insert from file and read from stdin"
msgstr ""
#: ./pkg/recipe/git.go:52
#, c-format
msgid "can not redeploy chaos version (%s) without --chaos"
msgstr ""
#: ./cli/recipe/upgrade.go:324
#, c-format
msgid "can upgrade service: %s, image: %s, tag: %s ::"
@ -1983,7 +1978,7 @@ msgstr ""
msgid "can't separate key from value: %s (this variable is probably unset)"
msgstr ""
#: ./cli/internal/deploy.go:229
#: ./cli/internal/deploy.go:237
msgid "cancelled"
msgstr ""
@ -2007,6 +2002,17 @@ msgstr ""
msgid "cannot parse %s, invalid tag specified?"
msgstr ""
#: ./pkg/recipe/git.go:52
#, c-format
msgid "cannot redeploy previous chaos version (%s), did you mean to use \"--chaos\"?"
msgstr ""
#: ./cli/app/deploy.go:368
#, c-format
msgid "cannot redeploy previous chaos version (%s), did you mean to use \"--chaos\"?\n"
" to return to a regular release, specify a release tag, commit SHA or use \"--latest\""
msgstr ""
#: ./pkg/dns/dns.go:38 ./pkg/dns/dns.go:47
#, c-format
msgid "cannot resolve ipv4 for %s?"
@ -2020,7 +2026,7 @@ msgstr ""
msgid "cannot use '[secret] [version]' and '--all' together"
msgstr ""
#: ./cli/app/deploy.go:296
#: ./cli/app/deploy.go:310
msgid "cannot use --chaos and --latest together"
msgstr ""
@ -2044,11 +2050,11 @@ msgstr ""
msgid "cannot use [service] and --all-services/-a together"
msgstr ""
#: ./cli/app/deploy.go:288 ./cli/app/new.go:76
#: ./cli/app/deploy.go:302 ./cli/app/new.go:76
msgid "cannot use [version] and --chaos together"
msgstr ""
#: ./cli/app/deploy.go:292
#: ./cli/app/deploy.go:306
msgid "cannot use [version] and --latest together"
msgstr ""
@ -2080,7 +2086,7 @@ msgstr ""
msgid "cfg"
msgstr ""
#: ./cli/app/backup.go:318 ./cli/app/backup.go:334 ./cli/app/check.go:94 ./cli/app/cmd.go:284 ./cli/app/cp.go:384 ./cli/app/deploy.go:374 ./cli/app/labels.go:142 ./cli/app/new.go:396 ./cli/app/ps.go:212 ./cli/app/restart.go:161 ./cli/app/restore.go:137 ./cli/app/secret.go:568 ./cli/app/secret.go:608 ./cli/app/secret.go:632 ./cli/app/secret.go:640 ./cli/catalogue/catalogue.go:317 ./cli/recipe/lint.go:136 ./cli/updater/updater.go:537
#: ./cli/app/backup.go:318 ./cli/app/backup.go:334 ./cli/app/check.go:94 ./cli/app/cmd.go:284 ./cli/app/cp.go:384 ./cli/app/deploy.go:393 ./cli/app/labels.go:142 ./cli/app/new.go:396 ./cli/app/ps.go:212 ./cli/app/restart.go:161 ./cli/app/restore.go:137 ./cli/app/secret.go:568 ./cli/app/secret.go:608 ./cli/app/secret.go:632 ./cli/app/secret.go:640 ./cli/catalogue/catalogue.go:317 ./cli/recipe/lint.go:136 ./cli/updater/updater.go:537
msgid "chaos"
msgstr ""
@ -2093,7 +2099,7 @@ msgstr ""
msgid "check for major updates"
msgstr ""
#: ./cli/app/deploy.go:93 ./cli/app/undeploy.go:57 ./cli/app/upgrade.go:435
#: ./cli/app/deploy.go:94 ./cli/app/undeploy.go:57 ./cli/app/upgrade.go:440
#, c-format
msgid "checking whether %s is already deployed"
msgstr ""
@ -2244,7 +2250,7 @@ msgstr ""
msgid "considering %s config(s) for tag update"
msgstr ""
#: ./cli/app/undeploy.go:135 ./cli/server/prune.go:53
#: ./cli/app/undeploy.go:140 ./cli/server/prune.go:53
#, c-format
msgid "containers pruned: %d; space reclaimed: %s"
msgstr ""
@ -2375,7 +2381,7 @@ msgstr ""
msgid "critical errors present in %s config"
msgstr ""
#: ./cli/app/rollback.go:291
#: ./cli/app/rollback.go:296
#, c-format
msgid "current deployment '%s' is not a known version for %s"
msgstr ""
@ -2396,7 +2402,7 @@ msgstr ""
#. no spaces in between
#. translators: `abra recipe diff` aliases. use a comma separated list of aliases
#. with no spaces in between
#: ./cli/app/backup.go:73 ./cli/app/deploy.go:28 ./cli/recipe/diff.go:16 ./cli/updater/updater.go:491
#: ./cli/app/backup.go:73 ./cli/app/deploy.go:29 ./cli/recipe/diff.go:16 ./cli/updater/updater.go:491
msgid "d"
msgstr ""
@ -2415,7 +2421,7 @@ msgid "deleted %s successfully from server"
msgstr ""
#. translators: `app deploy` command
#: ./cli/app/deploy.go:32
#: ./cli/app/deploy.go:33
msgid "deploy <domain> [version] [flags]"
msgstr ""
@ -2431,7 +2437,7 @@ msgstr ""
msgid "deploy labels stanza present"
msgstr ""
#: ./cli/app/deploy.go:409
#: ./cli/app/deploy.go:428
msgid "deploy latest recipe version"
msgstr ""
@ -2533,11 +2539,11 @@ msgstr ""
msgid "dirty: %v, "
msgstr ""
#: ./cli/app/deploy.go:401 ./cli/app/rollback.go:363 ./cli/app/upgrade.go:473
#: ./cli/app/deploy.go:420 ./cli/app/rollback.go:368 ./cli/app/upgrade.go:478
msgid "disable converge logic checks"
msgstr ""
#: ./cli/app/deploy.go:393 ./cli/app/rollback.go:355 ./cli/app/upgrade.go:465
#: ./cli/app/deploy.go:412 ./cli/app/rollback.go:360 ./cli/app/upgrade.go:470
msgid "disable public DNS checks"
msgstr ""
@ -2595,7 +2601,7 @@ msgstr ""
msgid "download <domain> [flags]"
msgstr ""
#: ./cli/internal/deploy.go:219
#: ./cli/internal/deploy.go:227
msgid "dry run"
msgstr ""
@ -2682,7 +2688,7 @@ msgstr ""
msgid "ensure \"image: ...\" set on all services"
msgstr ""
#: ./cli/app/deploy.go:114
#: ./cli/app/deploy.go:113
#, c-format
msgid "ensure recipe: %s"
msgstr ""
@ -2775,7 +2781,7 @@ msgstr ""
#. translators: `abra recipe fetch` aliases. use a comma separated list of aliases
#. with no spaces in between
#: ./cli/app/deploy.go:383 ./cli/app/remove.go:163 ./cli/app/rollback.go:345 ./cli/app/secret.go:593 ./cli/app/upgrade.go:455 ./cli/app/volume.go:217 ./cli/recipe/fetch.go:20 ./cli/recipe/fetch.go:138
#: ./cli/app/deploy.go:402 ./cli/app/remove.go:163 ./cli/app/rollback.go:350 ./cli/app/secret.go:593 ./cli/app/upgrade.go:460 ./cli/app/volume.go:217 ./cli/recipe/fetch.go:20 ./cli/recipe/fetch.go:138
msgid "f"
msgstr ""
@ -3011,7 +3017,7 @@ msgstr ""
msgid "for %s read env %s with value: %s from docker service"
msgstr ""
#: ./cli/app/deploy.go:382 ./cli/app/remove.go:162 ./cli/app/rollback.go:344 ./cli/app/upgrade.go:454 ./cli/app/volume.go:216 ./cli/recipe/fetch.go:137
#: ./cli/app/deploy.go:401 ./cli/app/remove.go:162 ./cli/app/rollback.go:349 ./cli/app/upgrade.go:459 ./cli/app/volume.go:216 ./cli/recipe/fetch.go:137
msgid "force"
msgstr ""
@ -3070,11 +3076,6 @@ msgstr ""
msgid "generated secrets %s shown again, please take note of them %s"
msgstr ""
#: ./cli/app/deploy.go:106
#, c-format
msgid "get deploy version: %s"
msgstr ""
#: ./pkg/app/compose.go:81
#, c-format
msgid "get label '%s'"
@ -3230,11 +3231,11 @@ msgstr ""
msgid "id: %s, "
msgstr ""
#: ./cli/app/backup.go:321 ./cli/app/backup.go:337 ./cli/app/check.go:97 ./cli/app/cmd.go:287 ./cli/app/cp.go:387 ./cli/app/deploy.go:377 ./cli/app/labels.go:145 ./cli/app/new.go:399 ./cli/app/ps.go:215 ./cli/app/restart.go:164 ./cli/app/restore.go:140 ./cli/app/secret.go:571 ./cli/app/secret.go:611 ./cli/app/secret.go:635 ./cli/app/secret.go:643 ./cli/catalogue/catalogue.go:320 ./cli/recipe/lint.go:139 ./cli/updater/updater.go:540
#: ./cli/app/backup.go:321 ./cli/app/backup.go:337 ./cli/app/check.go:97 ./cli/app/cmd.go:287 ./cli/app/cp.go:387 ./cli/app/deploy.go:396 ./cli/app/labels.go:145 ./cli/app/new.go:399 ./cli/app/ps.go:215 ./cli/app/restart.go:164 ./cli/app/restore.go:140 ./cli/app/secret.go:571 ./cli/app/secret.go:611 ./cli/app/secret.go:635 ./cli/app/secret.go:643 ./cli/catalogue/catalogue.go:320 ./cli/recipe/lint.go:139 ./cli/updater/updater.go:540
msgid "ignore uncommitted recipes changes"
msgstr ""
#: ./cli/app/undeploy.go:150 ./cli/server/prune.go:74
#: ./cli/app/undeploy.go:155 ./cli/server/prune.go:74
#, c-format
msgid "images pruned: %d; space reclaimed: %s"
msgstr ""
@ -3423,7 +3424,7 @@ msgstr ""
#. no spaces in between
#. translators: `abra recipe lint` aliases. use a comma separated list of
#. aliases with no spaces in between
#: ./cli/app/cmd.go:261 ./cli/app/deploy.go:407 ./cli/app/logs.go:20 ./cli/recipe/lint.go:17 ./cli/server/add.go:207
#: ./cli/app/cmd.go:261 ./cli/app/deploy.go:426 ./cli/app/logs.go:20 ./cli/recipe/lint.go:17 ./cli/server/add.go:207
msgid "l"
msgstr ""
@ -3432,7 +3433,7 @@ msgstr ""
msgid "labels <domain> [flags]"
msgstr ""
#: ./cli/app/deploy.go:406 ./cli/app/list.go:183
#: ./cli/app/deploy.go:425 ./cli/app/list.go:183
msgid "latest"
msgstr ""
@ -3672,7 +3673,7 @@ msgstr ""
msgid "network %q is declared as external, but it is not in the right scope: %q instead of \"swarm\""
msgstr ""
#: ./cli/app/undeploy.go:142 ./cli/server/prune.go:60
#: ./cli/app/undeploy.go:147 ./cli/server/prune.go:60
#, c-format
msgid "networks pruned: %d"
msgstr ""
@ -3895,11 +3896,11 @@ msgstr ""
msgid "no volumes to remove"
msgstr ""
#: ./cli/app/deploy.go:398 ./cli/app/rollback.go:360 ./cli/app/upgrade.go:470
#: ./cli/app/deploy.go:417 ./cli/app/rollback.go:365 ./cli/app/upgrade.go:475
msgid "no-converge-checks"
msgstr ""
#: ./cli/app/deploy.go:390 ./cli/app/rollback.go:352 ./cli/app/upgrade.go:462
#: ./cli/app/deploy.go:409 ./cli/app/rollback.go:357 ./cli/app/upgrade.go:467
msgid "no-domain-checks"
msgstr ""
@ -3911,7 +3912,7 @@ msgstr ""
msgid "no-tty"
msgstr ""
#: ./cli/internal/deploy.go:249
#: ./cli/internal/deploy.go:257
#, c-format
msgid "not enough arguments: %s"
msgstr ""
@ -3964,7 +3965,7 @@ msgstr ""
msgid "only show errors"
msgstr ""
#: ./cli/app/upgrade.go:481
#: ./cli/app/upgrade.go:486
msgid "only show release notes"
msgstr ""
@ -3976,7 +3977,7 @@ msgstr ""
#. with no spaces in between
#. translators: `abra server prune` aliases. use a comma separated list of
#. aliases with no spaces in between
#: ./cli/app/backup.go:295 ./cli/app/new.go:381 ./cli/app/ps.go:29 ./cli/app/secret.go:561 ./cli/app/secret.go:585 ./cli/app/secret.go:625 ./cli/app/undeploy.go:163 ./cli/catalogue/catalogue.go:294 ./cli/recipe/list.go:112 ./cli/recipe/release.go:672 ./cli/server/prune.go:18
#: ./cli/app/backup.go:295 ./cli/app/new.go:381 ./cli/app/ps.go:29 ./cli/app/secret.go:561 ./cli/app/secret.go:585 ./cli/app/secret.go:625 ./cli/app/undeploy.go:168 ./cli/catalogue/catalogue.go:294 ./cli/recipe/list.go:112 ./cli/recipe/release.go:672 ./cli/server/prune.go:18
msgid "p"
msgstr ""
@ -3995,22 +3996,22 @@ msgstr ""
msgid "parsed following command arguments: %s"
msgstr ""
#: ./cli/app/upgrade.go:338
#: ./cli/app/upgrade.go:343
#, c-format
msgid "parsing chosen upgrade version failed: %s"
msgstr ""
#: ./cli/app/upgrade.go:382
#: ./cli/app/upgrade.go:387
#, c-format
msgid "parsing deployed version failed: %s"
msgstr ""
#: ./cli/app/upgrade.go:343
#: ./cli/app/upgrade.go:348
#, c-format
msgid "parsing deployment version failed: %s"
msgstr ""
#: ./cli/app/upgrade.go:349 ./cli/app/upgrade.go:388
#: ./cli/app/upgrade.go:354 ./cli/app/upgrade.go:393
#, c-format
msgid "parsing recipe version failed: %s"
msgstr ""
@ -4035,7 +4036,7 @@ msgstr ""
msgid "pattern"
msgstr ""
#: ./cli/app/deploy.go:385 ./cli/app/remove.go:165 ./cli/app/rollback.go:347 ./cli/app/upgrade.go:457 ./cli/app/volume.go:219
#: ./cli/app/deploy.go:404 ./cli/app/remove.go:165 ./cli/app/rollback.go:352 ./cli/app/upgrade.go:462 ./cli/app/volume.go:219
msgid "perform action without further prompt"
msgstr ""
@ -4044,22 +4045,22 @@ msgstr ""
msgid "please fix your synced label for %s and re-run this command"
msgstr ""
#: ./cli/app/rollback.go:259
#: ./cli/app/rollback.go:264
#, c-format
msgid "please select a downgrade (version: %s):"
msgstr ""
#: ./cli/app/rollback.go:264
#: ./cli/app/rollback.go:269
#, c-format
msgid "please select a downgrade (version: %s, chaos: %s):"
msgstr ""
#: ./cli/app/upgrade.go:305
#: ./cli/app/upgrade.go:310
#, c-format
msgid "please select an upgrade (version: %s):"
msgstr ""
#: ./cli/app/upgrade.go:310
#: ./cli/app/upgrade.go:315
#, c-format
msgid "please select an upgrade (version: %s, chaos: %s):"
msgstr ""
@ -4084,7 +4085,7 @@ msgstr ""
msgid "print machine-readable output"
msgstr ""
#: ./cli/internal/deploy.go:223
#: ./cli/internal/deploy.go:231
msgid "proceed?"
msgstr ""
@ -4098,7 +4099,7 @@ msgstr ""
msgid "proposed images: %v"
msgstr ""
#: ./cli/app/undeploy.go:162
#: ./cli/app/undeploy.go:167
msgid "prune"
msgstr ""
@ -4107,7 +4108,7 @@ msgstr ""
msgid "prune <server> [flags]"
msgstr ""
#: ./cli/app/undeploy.go:165
#: ./cli/app/undeploy.go:170
msgid "prune unused containers, networks, and dangling images"
msgstr ""
@ -4140,7 +4141,7 @@ msgstr ""
#. with no spaces in between
#. translators: `abra recipe` aliases. use a comma separated list of aliases
#. with no spaces in between
#: ./cli/app/backup.go:327 ./cli/app/list.go:303 ./cli/app/move.go:346 ./cli/app/run.go:23 ./cli/app/upgrade.go:479 ./cli/catalogue/catalogue.go:302 ./cli/recipe/recipe.go:12 ./cli/recipe/release.go:640 ./cli/recipe/sync.go:270
#: ./cli/app/backup.go:327 ./cli/app/list.go:303 ./cli/app/move.go:346 ./cli/app/run.go:23 ./cli/app/upgrade.go:484 ./cli/catalogue/catalogue.go:302 ./cli/recipe/recipe.go:12 ./cli/recipe/release.go:640 ./cli/recipe/sync.go:270
msgid "r"
msgstr ""
@ -4256,7 +4257,7 @@ msgstr ""
msgid "release <recipe> [version] [flags]"
msgstr ""
#: ./cli/app/upgrade.go:478
#: ./cli/app/upgrade.go:483
msgid "releasenotes"
msgstr ""
@ -4560,7 +4561,7 @@ msgstr ""
msgid "run command locally"
msgstr ""
#: ./cli/app/deploy.go:255 ./cli/app/upgrade.go:286
#: ./cli/app/deploy.go:269 ./cli/app/upgrade.go:291
#, c-format
msgid "run the following post-deploy commands: %s"
msgstr ""
@ -4570,7 +4571,7 @@ msgstr ""
msgid "running backup %s on %s with exec config %v"
msgstr ""
#: ./cli/internal/deploy.go:279
#: ./cli/internal/deploy.go:287
#, c-format
msgid "running command %s %s within the context of %s_%s"
msgstr ""
@ -4590,7 +4591,7 @@ msgstr ""
msgid "running command: %s"
msgstr ""
#: ./cli/internal/deploy.go:257
#: ./cli/internal/deploy.go:265
#, c-format
msgid "running post-command '%s %s' in container %s"
msgstr ""
@ -4645,12 +4646,12 @@ msgstr ""
msgid "secret not found: %s"
msgstr ""
#: ./cli/app/deploy.go:324
#: ./cli/app/deploy.go:338
#, c-format
msgid "secret not generated: %s"
msgstr ""
#: ./cli/app/deploy.go:322
#: ./cli/app/deploy.go:336
#, c-format
msgid "secret not inserted (#generate=false): %s"
msgstr ""
@ -4770,7 +4771,7 @@ msgstr ""
msgid "severity"
msgstr ""
#: ./cli/app/deploy.go:417 ./cli/app/rollback.go:371 ./cli/app/upgrade.go:489
#: ./cli/app/deploy.go:436 ./cli/app/rollback.go:376 ./cli/app/upgrade.go:494
msgid "show all configs & images, including unchanged ones"
msgstr ""
@ -4794,7 +4795,7 @@ msgstr ""
msgid "show debug messages"
msgstr ""
#: ./cli/app/deploy.go:414 ./cli/app/rollback.go:368 ./cli/app/upgrade.go:486
#: ./cli/app/deploy.go:433 ./cli/app/rollback.go:373 ./cli/app/upgrade.go:491
msgid "show-unchanged"
msgstr ""
@ -4842,11 +4843,11 @@ msgstr ""
msgid "skipping converge logic checks"
msgstr ""
#: ./cli/app/deploy.go:186
#: ./cli/app/deploy.go:197
msgid "skipping domain checks"
msgstr ""
#: ./cli/app/deploy.go:183
#: ./cli/app/deploy.go:194
msgid "skipping domain checks, no DOMAIN=... configured"
msgstr ""
@ -5368,7 +5369,7 @@ msgstr ""
msgid "undeploy <domain> [flags]"
msgstr ""
#: ./cli/app/undeploy.go:111
#: ./cli/app/undeploy.go:116
msgid "undeploy succeeded 🟢"
msgstr ""
@ -5567,7 +5568,7 @@ msgstr ""
msgid "version %s saved to %s.env"
msgstr ""
#: ./cli/app/deploy.go:117
#: ./cli/app/deploy.go:116
#, c-format
msgid "version '%s' appears to be a chaos commit, but --chaos/-C was not provided"
msgstr ""
@ -5591,32 +5592,27 @@ msgstr ""
msgid "version wiped from %s.env"
msgstr ""
#: ./cli/app/deploy.go:351
#, c-format
msgid "version: can not redeploy chaos version %s"
msgstr ""
#: ./cli/app/deploy.go:338
#: ./cli/app/deploy.go:352
#, c-format
msgid "version: taking chaos version: %s"
msgstr ""
#: ./cli/app/deploy.go:359
#: ./cli/app/deploy.go:378
#, c-format
msgid "version: taking deployed version: %s"
msgstr ""
#: ./cli/app/deploy.go:364
#: ./cli/app/deploy.go:383
#, c-format
msgid "version: taking new recipe version: %s"
msgstr ""
#: ./cli/app/deploy.go:353
#: ./cli/app/deploy.go:372
#, c-format
msgid "version: taking version from .env file: %s"
msgstr ""
#: ./cli/app/deploy.go:344
#: ./cli/app/deploy.go:358
#, c-format
msgid "version: taking version from cli arg: %s"
msgstr ""
@ -5739,7 +5735,7 @@ msgstr ""
msgid "writer: %v, "
msgstr ""
#: ./cli/app/deploy.go:262 ./cli/app/new.go:241 ./cli/app/rollback.go:248 ./cli/app/undeploy.go:114 ./cli/app/upgrade.go:294
#: ./cli/app/deploy.go:276 ./cli/app/new.go:241 ./cli/app/rollback.go:253 ./cli/app/undeploy.go:119 ./cli/app/upgrade.go:299
#, c-format
msgid "writing recipe version failed: %s"
msgstr ""

View File

@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2025-09-30 19:20+0200\n"
"POT-Creation-Date: 2025-10-01 08:53+0200\n"
"PO-Revision-Date: 2025-09-04 08:14+0000\n"
"Last-Translator: chasqui <chasqui@cryptolab.net>\n"
"Language-Team: Spanish <https://translate.coopcloud.tech/projects/co-op-"
@ -119,7 +119,7 @@ msgid ""
" abra app run 1312.net app --user nobody -- ls -lha"
msgstr ""
#: cli/app/deploy.go:41
#: cli/app/deploy.go:42
msgid ""
" # standard deployment\n"
" abra app deploy 1312.net\n"
@ -237,7 +237,7 @@ msgstr ""
msgid "%s does not exist for %s, use /bin/sh as fallback"
msgstr ""
#: cli/app/cmd.go:114 cli/internal/deploy.go:241
#: cli/app/cmd.go:114 cli/internal/deploy.go:249
#, c-format
msgid "%s does not exist for %s?"
msgstr ""
@ -324,7 +324,7 @@ msgstr ""
msgid "%s inserted into pass store"
msgstr ""
#: cli/app/deploy.go:101
#: cli/app/deploy.go:102
#, c-format
msgid "%s is already deployed"
msgstr ""
@ -349,18 +349,18 @@ msgstr ""
msgid "%s is missing the TYPE env var?"
msgstr ""
#: cli/app/rollback.go:301 cli/app/rollback.go:305
#: cli/app/rollback.go:306 cli/app/rollback.go:310
#, c-format
msgid "%s is not a downgrade for %s?"
msgstr ""
#: cli/app/upgrade.go:422 cli/app/upgrade.go:426
#: cli/app/upgrade.go:427 cli/app/upgrade.go:431
#, c-format
msgid "%s is not an upgrade for %s?"
msgstr ""
#: cli/app/logs.go:65 cli/app/ps.go:62 cli/app/restart.go:100
#: cli/app/services.go:55 cli/app/undeploy.go:65 cli/app/upgrade.go:443
#: cli/app/services.go:55 cli/app/undeploy.go:65 cli/app/upgrade.go:448
#: cli/updater/updater.go:260
#, c-format
msgid "%s is not deployed?"
@ -376,7 +376,7 @@ msgstr ""
msgid "%s is still deployed. Run \"abra app undeploy %s\""
msgstr ""
#: cli/app/deploy.go:172 cli/app/upgrade.go:209
#: cli/app/deploy.go:183 cli/app/upgrade.go:209
#, c-format
msgid "%s missing from %s.env"
msgstr ""
@ -548,12 +548,12 @@ msgstr ""
msgid "%s: waiting %d seconds before next retry"
msgstr ""
#: cli/app/upgrade.go:417
#: cli/app/upgrade.go:422
#, c-format
msgid "'%s' is not a known version"
msgstr ""
#: cli/app/rollback.go:296 cli/app/upgrade.go:412
#: cli/app/rollback.go:301 cli/app/upgrade.go:417
#, c-format
msgid "'%s' is not a known version for %s"
msgstr ""
@ -635,7 +635,7 @@ msgid "Both local recipe and live deployment labels are shown."
msgstr ""
#: cli/app/backup.go:319 cli/app/backup.go:335 cli/app/check.go:95
#: cli/app/cmd.go:285 cli/app/cp.go:385 cli/app/deploy.go:375
#: cli/app/cmd.go:285 cli/app/cp.go:385 cli/app/deploy.go:394
#: cli/app/labels.go:143 cli/app/new.go:397 cli/app/ps.go:213
#: cli/app/restart.go:162 cli/app/restore.go:138 cli/app/secret.go:569
#: cli/app/secret.go:609 cli/app/secret.go:633 cli/app/secret.go:641
@ -648,7 +648,7 @@ msgstr ""
msgid "CHAOS"
msgstr ""
#: cli/internal/deploy.go:147
#: cli/internal/deploy.go:148
msgid "CHAOS DEPLOY"
msgstr ""
@ -806,12 +806,12 @@ msgid ""
"on your $PATH."
msgstr ""
#: cli/app/deploy.go:391 cli/app/new.go:373 cli/app/rollback.go:353
#: cli/app/upgrade.go:463
#: cli/app/deploy.go:410 cli/app/new.go:373 cli/app/rollback.go:358
#: cli/app/upgrade.go:468
msgid "D"
msgstr ""
#: cli/internal/deploy.go:160 cli/internal/deploy.go:164
#: cli/internal/deploy.go:165 cli/internal/deploy.go:170
msgid "DEPLOY"
msgstr ""
@ -819,20 +819,20 @@ msgstr ""
msgid "DEPLOYED LABELS"
msgstr ""
#: cli/app/list.go:222 cli/internal/deploy.go:78 cli/internal/deploy.go:200
#: cli/app/list.go:222 cli/internal/deploy.go:78 cli/internal/deploy.go:208
msgid "DOMAIN"
msgstr ""
#: cli/internal/deploy.go:169
#: cli/internal/deploy.go:177
msgid "DOWNGRADE"
msgstr ""
#. translators: Short description for `app deploy` command
#: cli/app/deploy.go:35
#: cli/app/deploy.go:36
msgid "Deploy an app"
msgstr "📤 Despliega una plataforma 🚀"
#: cli/app/deploy.go:36
#: cli/app/deploy.go:37
msgid ""
"Deploy an app.\n"
"\n"
@ -1063,7 +1063,7 @@ msgstr "📋 Listar los contenidos de una captura o instantánea 📸"
msgid "List volumes associated with an app"
msgstr "📋 Listar volúmenes 📦 asociados a una plataforma 🚀"
#: cli/internal/deploy.go:208
#: cli/internal/deploy.go:216
msgid "MOVE OVERVIEW"
msgstr ""
@ -1141,7 +1141,7 @@ msgstr ""
msgid "NAME"
msgstr ""
#: cli/internal/deploy.go:156
#: cli/internal/deploy.go:160
msgid "NEW DEPLOY"
msgstr ""
@ -1149,7 +1149,7 @@ msgstr ""
msgid "NEW DEPLOYMENT"
msgstr ""
#: cli/internal/deploy.go:203
#: cli/internal/deploy.go:211
msgid "NEW SERVER"
msgstr ""
@ -1170,7 +1170,7 @@ msgid ""
"Use \"--major/-m\" to include new major versions."
msgstr ""
#: cli/internal/deploy.go:202
#: cli/internal/deploy.go:210
msgid "OLD SERVER"
msgstr ""
@ -1200,7 +1200,7 @@ msgstr ""
msgid "README.md metadata filled in"
msgstr ""
#: cli/app/list.go:222 cli/internal/deploy.go:79 cli/internal/deploy.go:201
#: cli/app/list.go:222 cli/internal/deploy.go:79 cli/internal/deploy.go:209
msgid "RECIPE"
msgstr ""
@ -1340,7 +1340,7 @@ msgstr "💻 Ejecutar comandos en una plataforma 🚀"
msgid "S"
msgstr ""
#: cli/internal/deploy.go:99 cli/internal/deploy.go:204
#: cli/internal/deploy.go:99 cli/internal/deploy.go:212
msgid "SECRETS"
msgstr ""
@ -1575,11 +1575,11 @@ msgid ""
" # and source this file from your PowerShell profile."
msgstr ""
#: cli/app/deploy.go:415 cli/app/rollback.go:369 cli/app/upgrade.go:487
#: cli/app/deploy.go:434 cli/app/rollback.go:374 cli/app/upgrade.go:492
msgid "U"
msgstr ""
#: cli/internal/deploy.go:150
#: cli/internal/deploy.go:152
msgid "UNCHAOS DEPLOY"
msgstr ""
@ -1587,7 +1587,7 @@ msgstr ""
msgid "UNDEPLOY"
msgstr ""
#: cli/app/list.go:228 cli/internal/deploy.go:167
#: cli/app/list.go:228 cli/internal/deploy.go:174
msgid "UPGRADE"
msgstr ""
@ -1701,19 +1701,19 @@ msgid ""
"\n"
"Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "
"\"help\"))}}\n"
" {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}"
"{{if .HasAvailableLocalFlags}}\n"
" {{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if ."
"HasAvailableLocalFlags}}\n"
"\n"
"Flags:\n"
"{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}"
"{{if .HasAvailableInheritedFlags}}\n"
"{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if ."
"HasAvailableInheritedFlags}}\n"
"\n"
"Global Flags:\n"
"{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}"
"{{if .HasHelpSubCommands}}\n"
"{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if ."
"HasHelpSubCommands}}\n"
"\n"
"Additional help topics:{{range .Commands}}"
"{{if .IsAdditionalHelpTopicCommand}}\n"
"Additional help topics:{{range .Commands}}{{if ."
"IsAdditionalHelpTopicCommand}}\n"
" {{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}"
"{{if .HasAvailableSubCommands}}\n"
"\n"
@ -1740,7 +1740,7 @@ msgstr ""
msgid "VERSION"
msgstr ""
#: cli/internal/deploy.go:205
#: cli/internal/deploy.go:213
msgid "VOLUMES"
msgstr ""
@ -2019,7 +2019,7 @@ msgstr ""
msgid "attempting to run %s"
msgstr ""
#: cli/app/deploy.go:257 cli/app/upgrade.go:289
#: cli/app/deploy.go:271 cli/app/upgrade.go:294
#, c-format
msgid "attempting to run post deploy commands, saw: %s"
msgstr ""
@ -2044,7 +2044,7 @@ msgstr ""
msgid "autocomplete [bash|zsh|fish|powershell]"
msgstr "autocompletar [bash|zsh|fish|powershell]"
#: cli/app/deploy.go:64 cli/app/logs.go:39 cli/app/rollback.go:64
#: cli/app/deploy.go:65 cli/app/logs.go:39 cli/app/rollback.go:64
#: cli/app/secret.go:49 cli/app/secret.go:191 cli/app/secret.go:360
#: cli/app/upgrade.go:63 pkg/autocomplete/autocomplete.go:18
#: pkg/autocomplete/autocomplete.go:33 pkg/autocomplete/autocomplete.go:44
@ -2115,8 +2115,8 @@ msgstr ""
#. no spaces in between
#. translators: `abra app cp` aliases. use a comma separated list of aliases with
#. no spaces in between
#: cli/app/backup.go:148 cli/app/cp.go:30 cli/app/deploy.go:399
#: cli/app/rollback.go:361 cli/app/upgrade.go:471
#: cli/app/backup.go:148 cli/app/cp.go:30 cli/app/deploy.go:418
#: cli/app/rollback.go:366 cli/app/upgrade.go:476
msgid "c"
msgstr ""
@ -2124,11 +2124,6 @@ msgstr ""
msgid "can not insert from file and read from stdin"
msgstr ""
#: pkg/recipe/git.go:52
#, c-format
msgid "can not redeploy chaos version (%s) without --chaos"
msgstr ""
#: cli/recipe/upgrade.go:324
#, c-format
msgid "can upgrade service: %s, image: %s, tag: %s ::"
@ -2153,7 +2148,7 @@ msgstr ""
msgid "can't separate key from value: %s (this variable is probably unset)"
msgstr ""
#: cli/internal/deploy.go:229
#: cli/internal/deploy.go:237
msgid "cancelled"
msgstr ""
@ -2177,6 +2172,21 @@ msgstr ""
msgid "cannot parse %s, invalid tag specified?"
msgstr ""
#: pkg/recipe/git.go:52
#, c-format
msgid ""
"cannot redeploy previous chaos version (%s), did you mean to use \"--chaos\"?"
msgstr ""
#: cli/app/deploy.go:368
#, c-format
msgid ""
"cannot redeploy previous chaos version (%s), did you mean to use \"--"
"chaos\"?\n"
" to return to a regular release, specify a release tag, commit SHA or "
"use \"--latest\""
msgstr ""
#: pkg/dns/dns.go:38 pkg/dns/dns.go:47
#, c-format
msgid "cannot resolve ipv4 for %s?"
@ -2190,7 +2200,7 @@ msgstr ""
msgid "cannot use '[secret] [version]' and '--all' together"
msgstr ""
#: cli/app/deploy.go:296
#: cli/app/deploy.go:310
msgid "cannot use --chaos and --latest together"
msgstr ""
@ -2214,11 +2224,11 @@ msgstr ""
msgid "cannot use [service] and --all-services/-a together"
msgstr ""
#: cli/app/deploy.go:288 cli/app/new.go:76
#: cli/app/deploy.go:302 cli/app/new.go:76
msgid "cannot use [version] and --chaos together"
msgstr ""
#: cli/app/deploy.go:292
#: cli/app/deploy.go:306
msgid "cannot use [version] and --latest together"
msgstr ""
@ -2251,7 +2261,7 @@ msgid "cfg"
msgstr ""
#: cli/app/backup.go:318 cli/app/backup.go:334 cli/app/check.go:94
#: cli/app/cmd.go:284 cli/app/cp.go:384 cli/app/deploy.go:374
#: cli/app/cmd.go:284 cli/app/cp.go:384 cli/app/deploy.go:393
#: cli/app/labels.go:142 cli/app/new.go:396 cli/app/ps.go:212
#: cli/app/restart.go:161 cli/app/restore.go:137 cli/app/secret.go:568
#: cli/app/secret.go:608 cli/app/secret.go:632 cli/app/secret.go:640
@ -2269,7 +2279,7 @@ msgstr "verificar <domain> [flags]"
msgid "check for major updates"
msgstr ""
#: cli/app/deploy.go:93 cli/app/undeploy.go:57 cli/app/upgrade.go:435
#: cli/app/deploy.go:94 cli/app/undeploy.go:57 cli/app/upgrade.go:440
#, c-format
msgid "checking whether %s is already deployed"
msgstr ""
@ -2426,7 +2436,7 @@ msgstr ""
msgid "considering %s config(s) for tag update"
msgstr ""
#: cli/app/undeploy.go:135 cli/server/prune.go:53
#: cli/app/undeploy.go:140 cli/server/prune.go:53
#, c-format
msgid "containers pruned: %d; space reclaimed: %s"
msgstr ""
@ -2557,7 +2567,7 @@ msgstr ""
msgid "critical errors present in %s config"
msgstr ""
#: cli/app/rollback.go:291
#: cli/app/rollback.go:296
#, c-format
msgid "current deployment '%s' is not a known version for %s"
msgstr ""
@ -2578,7 +2588,7 @@ msgstr ""
#. no spaces in between
#. translators: `abra recipe diff` aliases. use a comma separated list of aliases
#. with no spaces in between
#: cli/app/backup.go:73 cli/app/deploy.go:28 cli/recipe/diff.go:16
#: cli/app/backup.go:73 cli/app/deploy.go:29 cli/recipe/diff.go:16
#: cli/updater/updater.go:491
msgid "d"
msgstr ""
@ -2598,7 +2608,7 @@ msgid "deleted %s successfully from server"
msgstr ""
#. translators: `app deploy` command
#: cli/app/deploy.go:32
#: cli/app/deploy.go:33
msgid "deploy <domain> [version] [flags]"
msgstr "desplegar <domain> [version] [flags]"
@ -2614,7 +2624,7 @@ msgstr ""
msgid "deploy labels stanza present"
msgstr ""
#: cli/app/deploy.go:409
#: cli/app/deploy.go:428
#, fuzzy
msgid "deploy latest recipe version"
msgstr "Publicar una nueva versión de una receta"
@ -2717,11 +2727,11 @@ msgstr ""
msgid "dirty: %v, "
msgstr ""
#: cli/app/deploy.go:401 cli/app/rollback.go:363 cli/app/upgrade.go:473
#: cli/app/deploy.go:420 cli/app/rollback.go:368 cli/app/upgrade.go:478
msgid "disable converge logic checks"
msgstr ""
#: cli/app/deploy.go:393 cli/app/rollback.go:355 cli/app/upgrade.go:465
#: cli/app/deploy.go:412 cli/app/rollback.go:360 cli/app/upgrade.go:470
msgid "disable public DNS checks"
msgstr ""
@ -2781,7 +2791,7 @@ msgstr ""
msgid "download <domain> [flags]"
msgstr "descargar <domain> [flags]"
#: cli/internal/deploy.go:219
#: cli/internal/deploy.go:227
msgid "dry run"
msgstr ""
@ -2869,7 +2879,7 @@ msgstr ""
msgid "ensure \"image: ...\" set on all services"
msgstr ""
#: cli/app/deploy.go:114
#: cli/app/deploy.go:113
#, c-format
msgid "ensure recipe: %s"
msgstr ""
@ -2966,8 +2976,8 @@ msgstr ""
#. translators: `abra recipe fetch` aliases. use a comma separated list of aliases
#. with no spaces in between
#: cli/app/deploy.go:383 cli/app/remove.go:163 cli/app/rollback.go:345
#: cli/app/secret.go:593 cli/app/upgrade.go:455 cli/app/volume.go:217
#: cli/app/deploy.go:402 cli/app/remove.go:163 cli/app/rollback.go:350
#: cli/app/secret.go:593 cli/app/upgrade.go:460 cli/app/volume.go:217
#: cli/recipe/fetch.go:20 cli/recipe/fetch.go:138
msgid "f"
msgstr ""
@ -3204,8 +3214,8 @@ msgstr ""
msgid "for %s read env %s with value: %s from docker service"
msgstr ""
#: cli/app/deploy.go:382 cli/app/remove.go:162 cli/app/rollback.go:344
#: cli/app/upgrade.go:454 cli/app/volume.go:216 cli/recipe/fetch.go:137
#: cli/app/deploy.go:401 cli/app/remove.go:162 cli/app/rollback.go:349
#: cli/app/upgrade.go:459 cli/app/volume.go:216 cli/recipe/fetch.go:137
msgid "force"
msgstr ""
@ -3264,11 +3274,6 @@ msgstr ""
msgid "generated secrets %s shown again, please take note of them %s"
msgstr ""
#: cli/app/deploy.go:106
#, c-format
msgid "get deploy version: %s"
msgstr ""
#: pkg/app/compose.go:81
#, c-format
msgid "get label '%s'"
@ -3426,7 +3431,7 @@ msgid "id: %s, "
msgstr ""
#: cli/app/backup.go:321 cli/app/backup.go:337 cli/app/check.go:97
#: cli/app/cmd.go:287 cli/app/cp.go:387 cli/app/deploy.go:377
#: cli/app/cmd.go:287 cli/app/cp.go:387 cli/app/deploy.go:396
#: cli/app/labels.go:145 cli/app/new.go:399 cli/app/ps.go:215
#: cli/app/restart.go:164 cli/app/restore.go:140 cli/app/secret.go:571
#: cli/app/secret.go:611 cli/app/secret.go:635 cli/app/secret.go:643
@ -3435,7 +3440,7 @@ msgstr ""
msgid "ignore uncommitted recipes changes"
msgstr ""
#: cli/app/undeploy.go:150 cli/server/prune.go:74
#: cli/app/undeploy.go:155 cli/server/prune.go:74
#, c-format
msgid "images pruned: %d; space reclaimed: %s"
msgstr ""
@ -3626,7 +3631,7 @@ msgstr ""
#. no spaces in between
#. translators: `abra recipe lint` aliases. use a comma separated list of
#. aliases with no spaces in between
#: cli/app/cmd.go:261 cli/app/deploy.go:407 cli/app/logs.go:20
#: cli/app/cmd.go:261 cli/app/deploy.go:426 cli/app/logs.go:20
#: cli/recipe/lint.go:17 cli/server/add.go:207
msgid "l"
msgstr ""
@ -3636,7 +3641,7 @@ msgstr ""
msgid "labels <domain> [flags]"
msgstr "etiquetas <domain> [flags]"
#: cli/app/deploy.go:406 cli/app/list.go:183
#: cli/app/deploy.go:425 cli/app/list.go:183
msgid "latest"
msgstr ""
@ -3893,7 +3898,7 @@ msgid ""
"instead of \"swarm\""
msgstr ""
#: cli/app/undeploy.go:142 cli/server/prune.go:60
#: cli/app/undeploy.go:147 cli/server/prune.go:60
#, c-format
msgid "networks pruned: %d"
msgstr ""
@ -4120,11 +4125,11 @@ msgstr ""
msgid "no volumes to remove"
msgstr ""
#: cli/app/deploy.go:398 cli/app/rollback.go:360 cli/app/upgrade.go:470
#: cli/app/deploy.go:417 cli/app/rollback.go:365 cli/app/upgrade.go:475
msgid "no-converge-checks"
msgstr ""
#: cli/app/deploy.go:390 cli/app/rollback.go:352 cli/app/upgrade.go:462
#: cli/app/deploy.go:409 cli/app/rollback.go:357 cli/app/upgrade.go:467
msgid "no-domain-checks"
msgstr ""
@ -4136,7 +4141,7 @@ msgstr ""
msgid "no-tty"
msgstr ""
#: cli/internal/deploy.go:249
#: cli/internal/deploy.go:257
#, c-format
msgid "not enough arguments: %s"
msgstr ""
@ -4191,7 +4196,7 @@ msgstr ""
msgid "only show errors"
msgstr ""
#: cli/app/upgrade.go:481
#: cli/app/upgrade.go:486
msgid "only show release notes"
msgstr ""
@ -4205,7 +4210,7 @@ msgstr ""
#. aliases with no spaces in between
#: cli/app/backup.go:295 cli/app/new.go:381 cli/app/ps.go:29
#: cli/app/secret.go:561 cli/app/secret.go:585 cli/app/secret.go:625
#: cli/app/undeploy.go:163 cli/catalogue/catalogue.go:294
#: cli/app/undeploy.go:168 cli/catalogue/catalogue.go:294
#: cli/recipe/list.go:112 cli/recipe/release.go:672 cli/server/prune.go:18
msgid "p"
msgstr ""
@ -4225,22 +4230,22 @@ msgstr ""
msgid "parsed following command arguments: %s"
msgstr ""
#: cli/app/upgrade.go:338
#: cli/app/upgrade.go:343
#, c-format
msgid "parsing chosen upgrade version failed: %s"
msgstr ""
#: cli/app/upgrade.go:382
#: cli/app/upgrade.go:387
#, c-format
msgid "parsing deployed version failed: %s"
msgstr ""
#: cli/app/upgrade.go:343
#: cli/app/upgrade.go:348
#, c-format
msgid "parsing deployment version failed: %s"
msgstr ""
#: cli/app/upgrade.go:349 cli/app/upgrade.go:388
#: cli/app/upgrade.go:354 cli/app/upgrade.go:393
#, c-format
msgid "parsing recipe version failed: %s"
msgstr ""
@ -4268,8 +4273,8 @@ msgstr ""
msgid "pattern"
msgstr ""
#: cli/app/deploy.go:385 cli/app/remove.go:165 cli/app/rollback.go:347
#: cli/app/upgrade.go:457 cli/app/volume.go:219
#: cli/app/deploy.go:404 cli/app/remove.go:165 cli/app/rollback.go:352
#: cli/app/upgrade.go:462 cli/app/volume.go:219
msgid "perform action without further prompt"
msgstr ""
@ -4278,22 +4283,22 @@ msgstr ""
msgid "please fix your synced label for %s and re-run this command"
msgstr ""
#: cli/app/rollback.go:259
#: cli/app/rollback.go:264
#, c-format
msgid "please select a downgrade (version: %s):"
msgstr ""
#: cli/app/rollback.go:264
#: cli/app/rollback.go:269
#, c-format
msgid "please select a downgrade (version: %s, chaos: %s):"
msgstr ""
#: cli/app/upgrade.go:305
#: cli/app/upgrade.go:310
#, c-format
msgid "please select an upgrade (version: %s):"
msgstr ""
#: cli/app/upgrade.go:310
#: cli/app/upgrade.go:315
#, c-format
msgid "please select an upgrade (version: %s, chaos: %s):"
msgstr ""
@ -4321,7 +4326,7 @@ msgstr ""
msgid "print machine-readable output"
msgstr ""
#: cli/internal/deploy.go:223
#: cli/internal/deploy.go:231
msgid "proceed?"
msgstr ""
@ -4335,7 +4340,7 @@ msgstr ""
msgid "proposed images: %v"
msgstr ""
#: cli/app/undeploy.go:162
#: cli/app/undeploy.go:167
msgid "prune"
msgstr ""
@ -4344,7 +4349,7 @@ msgstr ""
msgid "prune <server> [flags]"
msgstr "limpiar <server> [flags]"
#: cli/app/undeploy.go:165
#: cli/app/undeploy.go:170
msgid "prune unused containers, networks, and dangling images"
msgstr ""
@ -4378,7 +4383,7 @@ msgstr ""
#. translators: `abra recipe` aliases. use a comma separated list of aliases
#. with no spaces in between
#: cli/app/backup.go:327 cli/app/list.go:303 cli/app/move.go:346
#: cli/app/run.go:23 cli/app/upgrade.go:479 cli/catalogue/catalogue.go:302
#: cli/app/run.go:23 cli/app/upgrade.go:484 cli/catalogue/catalogue.go:302
#: cli/recipe/recipe.go:12 cli/recipe/release.go:640 cli/recipe/sync.go:270
msgid "r"
msgstr ""
@ -4497,7 +4502,7 @@ msgstr ""
msgid "release <recipe> [version] [flags]"
msgstr "publicar <recipe> [version] [flags]"
#: cli/app/upgrade.go:478
#: cli/app/upgrade.go:483
msgid "releasenotes"
msgstr ""
@ -4803,7 +4808,7 @@ msgstr ""
msgid "run command locally"
msgstr ""
#: cli/app/deploy.go:255 cli/app/upgrade.go:286
#: cli/app/deploy.go:269 cli/app/upgrade.go:291
#, c-format
msgid "run the following post-deploy commands: %s"
msgstr ""
@ -4813,7 +4818,7 @@ msgstr ""
msgid "running backup %s on %s with exec config %v"
msgstr ""
#: cli/internal/deploy.go:279
#: cli/internal/deploy.go:287
#, c-format
msgid "running command %s %s within the context of %s_%s"
msgstr ""
@ -4833,7 +4838,7 @@ msgstr ""
msgid "running command: %s"
msgstr ""
#: cli/internal/deploy.go:257
#: cli/internal/deploy.go:265
#, c-format
msgid "running post-command '%s %s' in container %s"
msgstr ""
@ -4892,12 +4897,12 @@ msgstr ""
msgid "secret not found: %s"
msgstr ""
#: cli/app/deploy.go:324
#: cli/app/deploy.go:338
#, c-format
msgid "secret not generated: %s"
msgstr ""
#: cli/app/deploy.go:322
#: cli/app/deploy.go:336
#, c-format
msgid "secret not inserted (#generate=false): %s"
msgstr ""
@ -4964,8 +4969,8 @@ msgstr ""
#: cli/recipe/upgrade.go:228
#, c-format
msgid ""
"service %s is at version %s, but pinned to %s, please correct your "
"compose.yml file manually!"
"service %s is at version %s, but pinned to %s, please correct your compose."
"yml file manually!"
msgstr ""
#: cli/recipe/upgrade.go:224
@ -5020,7 +5025,7 @@ msgstr ""
msgid "severity"
msgstr ""
#: cli/app/deploy.go:417 cli/app/rollback.go:371 cli/app/upgrade.go:489
#: cli/app/deploy.go:436 cli/app/rollback.go:376 cli/app/upgrade.go:494
msgid "show all configs & images, including unchanged ones"
msgstr ""
@ -5044,7 +5049,7 @@ msgstr ""
msgid "show debug messages"
msgstr ""
#: cli/app/deploy.go:414 cli/app/rollback.go:368 cli/app/upgrade.go:486
#: cli/app/deploy.go:433 cli/app/rollback.go:373 cli/app/upgrade.go:491
msgid "show-unchanged"
msgstr ""
@ -5092,11 +5097,11 @@ msgstr ""
msgid "skipping converge logic checks"
msgstr ""
#: cli/app/deploy.go:186
#: cli/app/deploy.go:197
msgid "skipping domain checks"
msgstr ""
#: cli/app/deploy.go:183
#: cli/app/deploy.go:194
msgid "skipping domain checks, no DOMAIN=... configured"
msgstr ""
@ -5626,7 +5631,7 @@ msgstr ""
msgid "undeploy <domain> [flags]"
msgstr "desarmar <domain> [flags]"
#: cli/app/undeploy.go:111
#: cli/app/undeploy.go:116
msgid "undeploy succeeded 🟢"
msgstr ""
@ -5830,7 +5835,7 @@ msgstr ""
msgid "version %s saved to %s.env"
msgstr ""
#: cli/app/deploy.go:117
#: cli/app/deploy.go:116
#, c-format
msgid ""
"version '%s' appears to be a chaos commit, but --chaos/-C was not provided"
@ -5855,32 +5860,27 @@ msgstr ""
msgid "version wiped from %s.env"
msgstr ""
#: cli/app/deploy.go:351
#, c-format
msgid "version: can not redeploy chaos version %s"
msgstr ""
#: cli/app/deploy.go:338
#: cli/app/deploy.go:352
#, c-format
msgid "version: taking chaos version: %s"
msgstr ""
#: cli/app/deploy.go:359
#: cli/app/deploy.go:378
#, c-format
msgid "version: taking deployed version: %s"
msgstr ""
#: cli/app/deploy.go:364
#: cli/app/deploy.go:383
#, c-format
msgid "version: taking new recipe version: %s"
msgstr ""
#: cli/app/deploy.go:353
#: cli/app/deploy.go:372
#, c-format
msgid "version: taking version from .env file: %s"
msgstr ""
#: cli/app/deploy.go:344
#: cli/app/deploy.go:358
#, c-format
msgid "version: taking version from cli arg: %s"
msgstr ""
@ -6006,8 +6006,8 @@ msgstr ""
msgid "writer: %v, "
msgstr ""
#: cli/app/deploy.go:262 cli/app/new.go:241 cli/app/rollback.go:248
#: cli/app/undeploy.go:114 cli/app/upgrade.go:294
#: cli/app/deploy.go:276 cli/app/new.go:241 cli/app/rollback.go:253
#: cli/app/undeploy.go:119 cli/app/upgrade.go:299
#, c-format
msgid "writing recipe version failed: %s"
msgstr ""

View File

@ -49,7 +49,7 @@ func (r Recipe) Ensure(ctx EnsureContext) error {
if r.EnvVersion != "" && !ctx.IgnoreEnvVersion {
log.Debug(i18n.G("ensuring env version %s", r.EnvVersion))
if strings.Contains(r.EnvVersion, "+U") {
return errors.New(i18n.G("can not redeploy chaos version (%s) without --chaos", r.EnvVersion))
return errors.New(i18n.G(`cannot redeploy previous chaos version (%s), did you mean to use "--chaos"?`))
}
if _, err := r.EnsureVersion(r.EnvVersion); err != nil {

View File

@ -247,7 +247,7 @@ func waitOnTasks(ctx context.Context, client apiclient.APIClient, namespace stri
}
}
if terminalStatesReached == len(tasks) {
if terminalStatesReached >= len(tasks) {
log.Debug(i18n.G("all tasks reached terminal state"))
break
}

View File

@ -175,7 +175,7 @@ teardown(){
}
# bats test_tags=slow
@test "bail if env has a hash but no --chaos" {
@test "do not bail if env version is a hash but no --chaos" {
wantHash=$(_get_n_hash 3)
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" reset --hard HEAD~3
@ -250,6 +250,7 @@ teardown(){
run $ABRA app deploy "$TEST_APP_DOMAIN" \
--no-input --no-converge-checks --chaos
assert_success
assert_output --regexp "NEW DEPLOYMENT.*${_get_head_hash:0:8}"
}
# bats test_tags=slow

View File

@ -163,7 +163,7 @@ teardown(){
assert_success
}
@test "can not redeploy chaos version without --chaos" {
@test "cannot redeploy chaos version without --chaos" {
headHash=$(_get_head_hash)
latestRelease=$(_latest_release)
@ -181,7 +181,7 @@ teardown(){
run $ABRA app deploy "$TEST_APP_DOMAIN" \
--no-input --no-converge-checks --force --debug
assert_failure
assert_output --regexp 'can not redeploy chaos version .*' + "${headHash:0:8}+U"
assert_output --regexp 'cannot redeploy previous chaos version .*' + "${headHash:0:8}+U"
}
@test "deploy then force commit deploy" {

View File

@ -181,7 +181,7 @@ teardown(){
}
# bats test_tags=slow
@test "rollback chaos deployment is not possible" {
@test "rollback chaos deployment is possible" {
tagHash=$(_get_tag_hash "0.2.0+1.21.0")
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" checkout "$tagHash"
assert_success
@ -191,12 +191,13 @@ teardown(){
assert_output --partial "${tagHash:0:8}"
run $ABRA app rollback "$TEST_APP_DOMAIN" "0.1.1+1.20.2" --no-input --no-converge-checks
assert_failure
assert_output --partial 'current deployment' + "${tagHash:0:8}" + 'is not a known version'
assert_success
assert_output --regexp "CURRENT DEPLOYMENT.*${tagHash:0:8}"
assert_output --regexp "ENV VERSION.*${tagHash:0:8}"
}
# bats test_tags=slow
@test "chaos commit rollback not possible" {
@test "specific chaos commit rollback not possible" {
_deploy_app
tagHash=$(_get_tag_hash "0.2.0+1.21.0")

View File

@ -106,6 +106,7 @@ teardown(){
run $ABRA app undeploy "$TEST_APP_DOMAIN" --no-input
assert_success
assert_output --regexp "CURRENT DEPLOYMENT.*${_get_head_hash:0:8}"
}
# bats test_tags=slow

View File

@ -256,7 +256,7 @@ teardown(){
}
# bats test_tags=slow
@test "upgrade commit deployment not possible" {
@test "commit deploy upgrade is possible" {
tagHash=$(_get_tag_hash "0.1.0+1.20.0")
run git -C "$ABRA_DIR/recipes/$TEST_RECIPE" checkout "$tagHash"
assert_success
@ -266,11 +266,12 @@ teardown(){
assert_output --partial "${tagHash:0:8}"
run $ABRA app upgrade "$TEST_APP_DOMAIN" "0.1.1+1.20.2" --no-input --no-converge-checks
assert_failure
assert_output --partial "not a known version"
assert_success
assert_output --regexp "CURRENT DEPLOYMENT.*${tagHash:0:8}"
assert_output --regexp "ENV VERSION.*${tagHash:0:8}"
}
@test "chaos commit upgrade not possible" {
@test "chaos commit upgrade is possible" {
run $ABRA app deploy "$TEST_APP_DOMAIN" "0.1.0+1.20.0" --no-input --no-converge-checks
assert_success
assert_output --partial '0.1.0+1.20.0'
@ -278,8 +279,7 @@ teardown(){
tagHash=$(_get_tag_hash "0.2.0+1.21.0")
run $ABRA app upgrade "$TEST_APP_DOMAIN" "$tagHash" --no-input --no-converge-checks
assert_failure
assert_output --partial "not a known version"
assert_success
}
# bats test_tags=slow