Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
d180bb924f
|
|||
d50d68d95a
|
|||
f468bc7443
|
|||
dee2d9d104
|
|||
5c892b1d6a
|
|||
81b96fc7b1
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,4 +7,3 @@
|
||||
/kadabra
|
||||
dist/
|
||||
tests/integration/.bats
|
||||
/bin
|
||||
|
10
Makefile
10
Makefile
@ -78,20 +78,14 @@ update-po:
|
||||
done
|
||||
|
||||
.PHONY: update-pot
|
||||
update-pot: ./bin/xgettext-go
|
||||
@./bin/xgettext-go \
|
||||
update-pot:
|
||||
@xgettext-go \
|
||||
-o pkg/i18n/locales/$(DOMAIN).pot \
|
||||
--keyword=i18n.G \
|
||||
--keyword-ctx=i18n.GC \
|
||||
--sort-output \
|
||||
--add-comments-tag="translators" \
|
||||
$$(find . -name "*.go" -not -path "*vendor*" | sort)
|
||||
|
||||
./bin/xgettext-go:
|
||||
@mkdir -p ./bin && \
|
||||
wget -O ./bin/xgettext-go https://git.coopcloud.tech/toolshed/xgettext-go/raw/branch/main/xgettext-go && \
|
||||
chmod +x ./bin/xgettext-go
|
||||
|
||||
.PHONY: update-pot-po-metadata
|
||||
update-pot-po-metadata:
|
||||
@sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.po pkg/i18n/locales/*.pot
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
// translators: `abra app` aliases. use a comma separated list of aliases with
|
||||
// no spaces in between
|
||||
var appAliases = i18n.GC("a", "abra app")
|
||||
var appAliases = i18n.G("a")
|
||||
|
||||
var AppCommand = &cobra.Command{
|
||||
// translators: `app` command group
|
||||
|
@ -268,7 +268,7 @@ func init() {
|
||||
AppBackupListCommand.Flags().BoolVarP(
|
||||
&showAllPaths,
|
||||
i18n.G("all"),
|
||||
i18n.GC("a", "app backup"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("show all paths"),
|
||||
)
|
||||
|
@ -300,6 +300,16 @@ func validateArgsAndFlags(args []string) error {
|
||||
}
|
||||
|
||||
func validateSecrets(cl *dockerClient.Client, app appPkg.App) error {
|
||||
composeFiles, err := app.Recipe.GetComposeFiles(app.Env)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
secretsConfig, err := secret.ReadSecretsConfig(app.Path, composeFiles, app.StackName())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
secStats, err := secret.PollSecretsStatus(cl, app)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -307,6 +317,10 @@ func validateSecrets(cl *dockerClient.Client, app appPkg.App) error {
|
||||
|
||||
for _, secStat := range secStats {
|
||||
if !secStat.CreatedOnRemote {
|
||||
secretConfig := secretsConfig[secStat.LocalName]
|
||||
if secretConfig.SkipGenerate {
|
||||
return errors.New(i18n.G("secret not inserted (#generate=false): %s", secStat.LocalName))
|
||||
}
|
||||
return errors.New(i18n.G("secret not generated: %s", secStat.LocalName))
|
||||
}
|
||||
}
|
||||
|
@ -192,7 +192,27 @@ var AppNewCommand = &cobra.Command{
|
||||
log.Info(i18n.G("%s created (version: %s)", appDomain, recipeVersion))
|
||||
|
||||
if len(secretsConfig) > 0 {
|
||||
log.Warn(i18n.G("%s requires secret generation before deploying, run \"abra app secret generate %s --all\"", recipe.Name, appDomain))
|
||||
var (
|
||||
hasSecretToGenerate bool
|
||||
hasSecretToSkip bool
|
||||
)
|
||||
|
||||
for _, secretConfig := range secretsConfig {
|
||||
if secretConfig.SkipGenerate {
|
||||
hasSecretToSkip = true
|
||||
continue
|
||||
}
|
||||
|
||||
hasSecretToGenerate = true
|
||||
}
|
||||
|
||||
if hasSecretToGenerate && !generateSecrets {
|
||||
log.Warn(i18n.G("%s requires secret generation before deploy, run \"abra app secret generate %s --all\"", recipe.Name, appDomain))
|
||||
}
|
||||
|
||||
if hasSecretToSkip {
|
||||
log.Warn(i18n.G("%s requires secret insertion before deploy (#generate=false)", recipe.Name))
|
||||
}
|
||||
}
|
||||
|
||||
if len(appSecrets) > 0 {
|
||||
|
@ -166,7 +166,7 @@ func init() {
|
||||
AppRestartCommand.Flags().BoolVarP(
|
||||
&allServices,
|
||||
i18n.G("all-services"),
|
||||
i18n.GC("a", "app restart"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("restart all services"),
|
||||
)
|
||||
|
@ -165,7 +165,7 @@ var AppSecretInsertCommand = &cobra.Command{
|
||||
Arbitrary secret insertion is not supported. Secrets that are inserted must
|
||||
match those configured in the recipe beforehand.
|
||||
|
||||
This can be useful when you want to manually generate secrets for an app
|
||||
This command can be useful when you want to manually generate secrets for an app
|
||||
environment. Typically, you can let Abra generate them for you on app creation
|
||||
(see "abra app new --secrets/-S" for more).`),
|
||||
Example: i18n.G(` # insert regular secret
|
||||
@ -574,7 +574,7 @@ func init() {
|
||||
AppSecretGenerateCommand.Flags().BoolVarP(
|
||||
&generateAllSecrets,
|
||||
i18n.G("all"),
|
||||
i18n.GC("a", "app secret generate"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("generate all secrets"),
|
||||
)
|
||||
@ -614,7 +614,7 @@ func init() {
|
||||
AppSecretRmCommand.Flags().BoolVarP(
|
||||
&rmAllSecrets,
|
||||
i18n.G("all"),
|
||||
i18n.GC("a", "app secret rm"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("remove all secrets"),
|
||||
)
|
||||
|
@ -119,7 +119,7 @@ func init() {
|
||||
RecipeFetchCommand.Flags().BoolVarP(
|
||||
&fetchAllRecipes,
|
||||
i18n.G("all"),
|
||||
i18n.GC("a", "recipe fetch"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("fetch all recipes"),
|
||||
)
|
||||
|
@ -381,7 +381,7 @@ func init() {
|
||||
RecipeUpgradeCommand.Flags().BoolVarP(
|
||||
&allTags,
|
||||
i18n.G("all-tags"),
|
||||
i18n.GC("a", "recipe upgrade"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("list all tags, not just upgrades"),
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ import (
|
||||
|
||||
// translators: `abra server add` aliases. use a comma separated list of
|
||||
// aliases with no spaces in between
|
||||
var serverAddAliases = i18n.GC("a", "server add")
|
||||
var serverAddAliases = i18n.G("a")
|
||||
|
||||
var ServerAddCommand = &cobra.Command{
|
||||
// translators: `server add` command
|
||||
|
@ -96,7 +96,7 @@ func init() {
|
||||
ServerPruneCommand.Flags().BoolVarP(
|
||||
&allFilter,
|
||||
i18n.G("all"),
|
||||
i18n.GC("a", "server prune"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("remove all unused images"),
|
||||
)
|
||||
|
@ -551,7 +551,7 @@ func init() {
|
||||
UpgradeCommand.Flags().BoolVarP(
|
||||
&updateAll,
|
||||
i18n.G("all"),
|
||||
i18n.GC("a", "abra upgrade"),
|
||||
i18n.G("a"),
|
||||
false,
|
||||
i18n.G("update all deployed apps"),
|
||||
)
|
||||
|
@ -20,7 +20,6 @@ var (
|
||||
Locale = DefaultLocale
|
||||
_, Mo = LoadLocale()
|
||||
G = Mo.Get
|
||||
GC = Mo.GetC
|
||||
)
|
||||
|
||||
func LoadLocale() (string, *gotext.Mo) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
msgid ""
|
||||
msgstr "Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-09-28 12:38+0200\n"
|
||||
"POT-Creation-Date: 2025-09-29 10:31+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"
|
||||
@ -201,7 +201,7 @@ msgstr ""
|
||||
msgid "%s OVERVIEW"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/server/add.go:127 ./pkg/secret/secret.go:223 ./pkg/secret/secret.go:243 ./pkg/server/server.go:21
|
||||
#: ./cli/server/add.go:127 ./pkg/secret/secret.go:233 ./pkg/secret/secret.go:253 ./pkg/server/server.go:21
|
||||
#, c-format
|
||||
msgid "%s already exists"
|
||||
msgstr ""
|
||||
@ -296,7 +296,7 @@ msgstr ""
|
||||
msgid "%s has no published versions?"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:281
|
||||
#: ./cli/app/new.go:301
|
||||
#, c-format
|
||||
msgid "%s has no secrets to generate, skipping..."
|
||||
msgstr ""
|
||||
@ -376,7 +376,7 @@ msgstr ""
|
||||
msgid "%s not considered semver-like"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:130
|
||||
#: ./pkg/secret/secret.go:135
|
||||
#, c-format
|
||||
msgid "%s not enabled in recipe config, skipping"
|
||||
msgstr ""
|
||||
@ -396,9 +396,14 @@ msgstr ""
|
||||
msgid "%s removed from pass store"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:195
|
||||
#: ./cli/app/new.go:210
|
||||
#, c-format
|
||||
msgid "%s requires secret generation before deploying, run \"abra app secret generate %s --all\""
|
||||
msgid "%s requires secret generation before deploy, run \"abra app secret generate %s --all\""
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:214
|
||||
#, c-format
|
||||
msgid "%s requires secret insertion before deploy (#generate=false)"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:141
|
||||
@ -602,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:361 ./cli/app/labels.go:143 ./cli/app/new.go:377 ./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: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
|
||||
msgid "C"
|
||||
msgstr ""
|
||||
|
||||
@ -748,7 +753,7 @@ msgid "Creates a new app from a default recipe.\n"
|
||||
"on your $PATH."
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:377 ./cli/app/new.go:353 ./cli/app/rollback.go:353 ./cli/app/upgrade.go:463
|
||||
#: ./cli/app/deploy.go:391 ./cli/app/new.go:373 ./cli/app/rollback.go:353 ./cli/app/upgrade.go:463
|
||||
msgid "D"
|
||||
msgstr ""
|
||||
|
||||
@ -859,7 +864,7 @@ msgid "Generate a report of all managed apps.\n"
|
||||
"Use \"--status/-S\" flag to query all servers for the live deployment status."
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:287
|
||||
#: ./cli/app/new.go:307
|
||||
msgid "Generate app secrets?"
|
||||
msgstr ""
|
||||
|
||||
@ -1231,7 +1236,7 @@ msgstr ""
|
||||
msgid "Run app commands"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/backup.go:303 ./cli/app/list.go:295 ./cli/app/logs.go:109 ./cli/app/new.go:369
|
||||
#: ./cli/app/backup.go:303 ./cli/app/list.go:295 ./cli/app/logs.go:109 ./cli/app/new.go:389
|
||||
msgid "S"
|
||||
msgstr ""
|
||||
|
||||
@ -1239,7 +1244,7 @@ msgstr ""
|
||||
msgid "SECRETS"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:204
|
||||
#: ./cli/app/new.go:224
|
||||
msgid "SECRETS OVERVIEW"
|
||||
msgstr ""
|
||||
|
||||
@ -1272,7 +1277,7 @@ msgstr ""
|
||||
msgid "STATUS"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:312
|
||||
#: ./cli/app/new.go:332
|
||||
msgid "Select app server:"
|
||||
msgstr ""
|
||||
|
||||
@ -1309,7 +1314,7 @@ msgstr ""
|
||||
msgid "Specify a server name"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:263
|
||||
#: ./cli/app/new.go:283
|
||||
msgid "Specify app domain"
|
||||
msgstr ""
|
||||
|
||||
@ -1363,7 +1368,7 @@ msgid "This command inserts a secret into an app environment.\n"
|
||||
"Arbitrary secret insertion is not supported. Secrets that are inserted must\n"
|
||||
"match those configured in the recipe beforehand.\n"
|
||||
"\n"
|
||||
"This can be useful when you want to manually generate secrets for an app\n"
|
||||
"This command can be useful when you want to manually generate secrets for an app\n"
|
||||
"environment. Typically, you can let Abra generate them for you on app creation\n"
|
||||
"(see \"abra app new --secrets/-S\" for more)."
|
||||
msgstr ""
|
||||
@ -1451,7 +1456,7 @@ msgid "To load completions:\n"
|
||||
" # and source this file from your PowerShell profile."
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:401 ./cli/app/rollback.go:369 ./cli/app/upgrade.go:487
|
||||
#: ./cli/app/deploy.go:415 ./cli/app/rollback.go:369 ./cli/app/upgrade.go:487
|
||||
msgid "U"
|
||||
msgstr ""
|
||||
|
||||
@ -1668,55 +1673,9 @@ msgstr ""
|
||||
|
||||
#. translators: `abra app` aliases. use a comma separated list of aliases with
|
||||
#. no spaces in between
|
||||
#: ./cli/app/app.go:12
|
||||
msgctxt "abra app"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/backup.go:271
|
||||
msgctxt "app backup"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/restart.go:169
|
||||
msgctxt "app restart"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/secret.go:577
|
||||
msgctxt "app secret generate"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/secret.go:617
|
||||
msgctxt "app secret rm"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/recipe/fetch.go:122
|
||||
msgctxt "recipe fetch"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/recipe/upgrade.go:384
|
||||
msgctxt "recipe upgrade"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#. translators: `abra server add` aliases. use a comma separated list of
|
||||
#. aliases with no spaces in between
|
||||
#: ./cli/server/add.go:23
|
||||
msgctxt "server add"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/server/prune.go:99
|
||||
msgctxt "server prune"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/updater/updater.go:554
|
||||
msgctxt "abra upgrade"
|
||||
#: ./cli/app/app.go:12 ./cli/app/backup.go:271 ./cli/app/restart.go:169 ./cli/app/secret.go:577 ./cli/app/secret.go:617 ./cli/recipe/fetch.go:122 ./cli/recipe/upgrade.go:384 ./cli/server/add.go:23 ./cli/server/prune.go:99 ./cli/updater/updater.go:554
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
@ -1841,7 +1800,7 @@ msgstr ""
|
||||
msgid "attempting to create client for %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:212
|
||||
#: ./pkg/secret/secret.go:222
|
||||
#, c-format
|
||||
msgid "attempting to generate and store %s on %s"
|
||||
msgstr ""
|
||||
@ -1881,7 +1840,7 @@ msgstr ""
|
||||
msgid "autocomplete failed: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:371
|
||||
#: ./cli/app/new.go:391
|
||||
msgid "automatically generate secrets"
|
||||
msgstr ""
|
||||
|
||||
@ -1941,7 +1900,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:385 ./cli/app/rollback.go:361 ./cli/app/upgrade.go:471
|
||||
#: ./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
|
||||
msgid "c"
|
||||
msgstr ""
|
||||
|
||||
@ -2075,7 +2034,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:360 ./cli/app/labels.go:142 ./cli/app/new.go:376 ./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: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
|
||||
msgid "chaos"
|
||||
msgstr ""
|
||||
|
||||
@ -2426,7 +2385,7 @@ msgstr ""
|
||||
msgid "deploy labels stanza present"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:395
|
||||
#: ./cli/app/deploy.go:409
|
||||
msgid "deploy latest recipe version"
|
||||
msgstr ""
|
||||
|
||||
@ -2528,11 +2487,11 @@ msgstr ""
|
||||
msgid "dirty: %v, "
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:387 ./cli/app/rollback.go:363 ./cli/app/upgrade.go:473
|
||||
#: ./cli/app/deploy.go:401 ./cli/app/rollback.go:363 ./cli/app/upgrade.go:473
|
||||
msgid "disable converge logic checks"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:379 ./cli/app/rollback.go:355 ./cli/app/upgrade.go:465
|
||||
#: ./cli/app/deploy.go:393 ./cli/app/rollback.go:355 ./cli/app/upgrade.go:465
|
||||
msgid "disable public DNS checks"
|
||||
msgstr ""
|
||||
|
||||
@ -2553,11 +2512,11 @@ msgstr ""
|
||||
msgid "docker: is the daemon running / your user has docker permissions?"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:352
|
||||
#: ./cli/app/new.go:372
|
||||
msgid "domain"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:355
|
||||
#: ./cli/app/new.go:375
|
||||
msgid "domain name for app"
|
||||
msgstr ""
|
||||
|
||||
@ -2770,7 +2729,7 @@ msgstr ""
|
||||
|
||||
#. translators: `abra recipe fetch` aliases. use a comma separated list of aliases
|
||||
#. with no spaces in between
|
||||
#: ./cli/app/deploy.go:369 ./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: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
|
||||
msgid "f"
|
||||
msgstr ""
|
||||
|
||||
@ -3006,7 +2965,7 @@ msgstr ""
|
||||
msgid "for %s read env %s with value: %s from docker service"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:368 ./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: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
|
||||
msgid "force"
|
||||
msgstr ""
|
||||
|
||||
@ -3045,12 +3004,12 @@ msgstr ""
|
||||
msgid "generate all secrets"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:62 ./pkg/secret/secret.go:80
|
||||
#: ./pkg/secret/secret.go:67 ./pkg/secret/secret.go:85
|
||||
#, c-format
|
||||
msgid "generated %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:268
|
||||
#: ./pkg/secret/secret.go:278
|
||||
#, c-format
|
||||
msgid "generated and stored %v on %s"
|
||||
msgstr ""
|
||||
@ -3225,7 +3184,7 @@ 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:363 ./cli/app/labels.go:145 ./cli/app/new.go:379 ./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: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
|
||||
msgid "ignore uncommitted recipes changes"
|
||||
msgstr ""
|
||||
|
||||
@ -3418,7 +3377,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:393 ./cli/app/logs.go:20 ./cli/recipe/lint.go:17 ./cli/server/add.go:207
|
||||
#: ./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
|
||||
msgid "l"
|
||||
msgstr ""
|
||||
|
||||
@ -3427,7 +3386,7 @@ msgstr ""
|
||||
msgid "labels <domain> [flags]"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:392 ./cli/app/list.go:183
|
||||
#: ./cli/app/deploy.go:406 ./cli/app/list.go:183
|
||||
msgid "latest"
|
||||
msgstr ""
|
||||
|
||||
@ -3611,7 +3570,7 @@ msgstr ""
|
||||
msgid "missing arguments or --all/-a flag"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:126
|
||||
#: ./pkg/secret/secret.go:131
|
||||
#, c-format
|
||||
msgid "missing version for secret? (%s)"
|
||||
msgstr ""
|
||||
@ -3774,7 +3733,7 @@ msgstr ""
|
||||
msgid "no containers matching the %v filter found?"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:272 ./cli/internal/validate.go:129
|
||||
#: ./cli/app/new.go:292 ./cli/internal/validate.go:129
|
||||
msgid "no domain provided"
|
||||
msgstr ""
|
||||
|
||||
@ -3832,7 +3791,7 @@ msgstr ""
|
||||
msgid "no secrets to remove?"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:321 ./cli/internal/validate.go:167
|
||||
#: ./cli/app/new.go:341 ./cli/internal/validate.go:167
|
||||
msgid "no server provided"
|
||||
msgstr ""
|
||||
|
||||
@ -3890,11 +3849,11 @@ msgstr ""
|
||||
msgid "no volumes to remove"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:384 ./cli/app/rollback.go:360 ./cli/app/upgrade.go:470
|
||||
#: ./cli/app/deploy.go:398 ./cli/app/rollback.go:360 ./cli/app/upgrade.go:470
|
||||
msgid "no-converge-checks"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:376 ./cli/app/rollback.go:352 ./cli/app/upgrade.go:462
|
||||
#: ./cli/app/deploy.go:390 ./cli/app/rollback.go:352 ./cli/app/upgrade.go:462
|
||||
msgid "no-domain-checks"
|
||||
msgstr ""
|
||||
|
||||
@ -3911,7 +3870,7 @@ msgstr ""
|
||||
msgid "not enough arguments: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:119
|
||||
#: ./pkg/secret/secret.go:124
|
||||
msgid "not generating app secrets, none enabled in recipe config"
|
||||
msgstr ""
|
||||
|
||||
@ -3971,7 +3930,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:361 ./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:163 ./cli/catalogue/catalogue.go:294 ./cli/recipe/list.go:112 ./cli/recipe/release.go:672 ./cli/server/prune.go:18
|
||||
msgid "p"
|
||||
msgstr ""
|
||||
|
||||
@ -4010,7 +3969,7 @@ msgstr ""
|
||||
msgid "parsing recipe version failed: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:360 ./cli/app/secret.go:560 ./cli/app/secret.go:584 ./cli/app/secret.go:624
|
||||
#: ./cli/app/new.go:380 ./cli/app/secret.go:560 ./cli/app/secret.go:584 ./cli/app/secret.go:624
|
||||
msgid "pass"
|
||||
msgstr ""
|
||||
|
||||
@ -4030,7 +3989,7 @@ msgstr ""
|
||||
msgid "pattern"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:371 ./cli/app/remove.go:165 ./cli/app/rollback.go:347 ./cli/app/upgrade.go:457 ./cli/app/volume.go:219
|
||||
#: ./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
|
||||
msgid "perform action without further prompt"
|
||||
msgstr ""
|
||||
|
||||
@ -4598,7 +4557,7 @@ msgstr ""
|
||||
#. aliases with no spaces in between
|
||||
#. translators: `abra server` aliases. use a comma separated list of aliases
|
||||
#. with no spaces in between
|
||||
#: ./cli/app/backup.go:198 ./cli/app/backup.go:263 ./cli/app/backup.go:287 ./cli/app/list.go:326 ./cli/app/logs.go:101 ./cli/app/new.go:338 ./cli/app/restore.go:114 ./cli/app/secret.go:535 ./cli/catalogue/catalogue.go:27 ./cli/catalogue/catalogue.go:310 ./cli/recipe/fetch.go:130 ./cli/recipe/sync.go:24 ./cli/server/server.go:12
|
||||
#: ./cli/app/backup.go:198 ./cli/app/backup.go:263 ./cli/app/backup.go:287 ./cli/app/list.go:326 ./cli/app/logs.go:101 ./cli/app/new.go:358 ./cli/app/restore.go:114 ./cli/app/secret.go:535 ./cli/catalogue/catalogue.go:27 ./cli/catalogue/catalogue.go:310 ./cli/recipe/fetch.go:130 ./cli/recipe/sync.go:24 ./cli/server/server.go:12
|
||||
msgid "s"
|
||||
msgstr ""
|
||||
|
||||
@ -4616,7 +4575,7 @@ msgstr ""
|
||||
msgid "searching abra.sh for version for %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:139
|
||||
#: ./pkg/secret/secret.go:149
|
||||
#, c-format
|
||||
msgid "secret %s is > %d chars when combined with %s"
|
||||
msgstr ""
|
||||
@ -4640,27 +4599,32 @@ msgstr ""
|
||||
msgid "secret not found: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:310
|
||||
#: ./cli/app/deploy.go:324
|
||||
#, c-format
|
||||
msgid "secret not generated: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:322
|
||||
#, c-format
|
||||
msgid "secret not inserted (#generate=false): %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/remove.go:123
|
||||
#, c-format
|
||||
msgid "secret: %s removed"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/backup.go:302 ./cli/app/new.go:368
|
||||
#: ./cli/app/backup.go:302 ./cli/app/new.go:388
|
||||
msgid "secrets"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:208
|
||||
#: ./cli/app/new.go:228
|
||||
#, c-format
|
||||
msgid "secrets are %s shown again, please save them %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: `abra server` command for autocompletion
|
||||
#: ./cli/app/list.go:325 ./cli/app/list.go:332 ./cli/app/new.go:337 ./cli/app/new.go:344 ./cli/run.go:101
|
||||
#: ./cli/app/list.go:325 ./cli/app/list.go:332 ./cli/app/new.go:357 ./cli/app/new.go:364 ./cli/run.go:101
|
||||
msgid "server"
|
||||
msgstr ""
|
||||
|
||||
@ -4760,7 +4724,7 @@ msgstr ""
|
||||
msgid "severity"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:403 ./cli/app/rollback.go:371 ./cli/app/upgrade.go:489
|
||||
#: ./cli/app/deploy.go:417 ./cli/app/rollback.go:371 ./cli/app/upgrade.go:489
|
||||
msgid "show all configs & images, including unchanged ones"
|
||||
msgstr ""
|
||||
|
||||
@ -4784,7 +4748,7 @@ msgstr ""
|
||||
msgid "show debug messages"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:400 ./cli/app/rollback.go:368 ./cli/app/upgrade.go:486
|
||||
#: ./cli/app/deploy.go:414 ./cli/app/rollback.go:368 ./cli/app/upgrade.go:486
|
||||
msgid "show-unchanged"
|
||||
msgstr ""
|
||||
|
||||
@ -4792,7 +4756,7 @@ msgstr ""
|
||||
msgid "since"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:306
|
||||
#: ./cli/app/new.go:326
|
||||
#, c-format
|
||||
msgid "single server detected, choosing %s automatically"
|
||||
msgstr ""
|
||||
@ -4840,7 +4804,7 @@ msgstr ""
|
||||
msgid "skipping domain checks, no DOMAIN=... configured"
|
||||
msgstr ""
|
||||
|
||||
#: ./pkg/secret/secret.go:207
|
||||
#: ./pkg/secret/secret.go:217
|
||||
#, c-format
|
||||
msgid "skipping generation of %s (generate=false)"
|
||||
msgstr ""
|
||||
@ -4872,7 +4836,7 @@ msgstr ""
|
||||
msgid "specify secret value"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:340
|
||||
#: ./cli/app/new.go:360
|
||||
msgid "specify server for new app"
|
||||
msgstr ""
|
||||
|
||||
@ -4930,7 +4894,7 @@ msgstr ""
|
||||
msgid "store generated secrets in a local pass store"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:363
|
||||
#: ./cli/app/new.go:383
|
||||
msgid "store secrets in a local pass store"
|
||||
msgstr ""
|
||||
|
||||
@ -5085,7 +5049,7 @@ msgstr ""
|
||||
msgid "trim input"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/new.go:233 ./pkg/app/app.go:141
|
||||
#: ./cli/app/new.go:253 ./pkg/app/app.go:141
|
||||
#, c-format
|
||||
msgid "trimming %s to %s to avoid runtime limits"
|
||||
msgstr ""
|
||||
@ -5581,32 +5545,32 @@ msgstr ""
|
||||
msgid "version wiped from %s.env"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:337
|
||||
#: ./cli/app/deploy.go:351
|
||||
#, c-format
|
||||
msgid "version: can not redeploy chaos version %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:324
|
||||
#: ./cli/app/deploy.go:338
|
||||
#, c-format
|
||||
msgid "version: taking chaos version: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:345
|
||||
#: ./cli/app/deploy.go:359
|
||||
#, c-format
|
||||
msgid "version: taking deployed version: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:350
|
||||
#: ./cli/app/deploy.go:364
|
||||
#, c-format
|
||||
msgid "version: taking new recipe version: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:339
|
||||
#: ./cli/app/deploy.go:353
|
||||
#, c-format
|
||||
msgid "version: taking version from .env file: %s"
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:330
|
||||
#: ./cli/app/deploy.go:344
|
||||
#, c-format
|
||||
msgid "version: taking version from cli arg: %s"
|
||||
msgstr ""
|
||||
@ -5729,7 +5693,7 @@ msgstr ""
|
||||
msgid "writer: %v, "
|
||||
msgstr ""
|
||||
|
||||
#: ./cli/app/deploy.go:262 ./cli/app/new.go:221 ./cli/app/rollback.go:248 ./cli/app/undeploy.go:114 ./cli/app/upgrade.go:294
|
||||
#: ./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
|
||||
#, c-format
|
||||
msgid "writing recipe version failed: %s"
|
||||
msgstr ""
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-09-28 12:38+0200\n"
|
||||
"POT-Creation-Date: 2025-09-29 10:31+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-"
|
||||
@ -211,7 +211,7 @@ msgstr ""
|
||||
msgid "%s OVERVIEW"
|
||||
msgstr ""
|
||||
|
||||
#: cli/server/add.go:127 pkg/secret/secret.go:223 pkg/secret/secret.go:243
|
||||
#: cli/server/add.go:127 pkg/secret/secret.go:233 pkg/secret/secret.go:253
|
||||
#: pkg/server/server.go:21
|
||||
#, c-format
|
||||
msgid "%s already exists"
|
||||
@ -309,7 +309,7 @@ msgstr ""
|
||||
msgid "%s has no published versions?"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:281
|
||||
#: cli/app/new.go:301
|
||||
#, c-format
|
||||
msgid "%s has no secrets to generate, skipping..."
|
||||
msgstr ""
|
||||
@ -391,7 +391,7 @@ msgstr ""
|
||||
msgid "%s not considered semver-like"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:130
|
||||
#: pkg/secret/secret.go:135
|
||||
#, c-format
|
||||
msgid "%s not enabled in recipe config, skipping"
|
||||
msgstr ""
|
||||
@ -411,11 +411,16 @@ msgstr ""
|
||||
msgid "%s removed from pass store"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:195
|
||||
#: cli/app/new.go:210
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s requires secret generation before deploying, run \"abra app secret "
|
||||
"generate %s --all\""
|
||||
"%s requires secret generation before deploy, run \"abra app secret generate "
|
||||
"%s --all\""
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:214
|
||||
#, c-format
|
||||
msgid "%s requires secret insertion before deploy (#generate=false)"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:141
|
||||
@ -630,8 +635,8 @@ 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:361
|
||||
#: cli/app/labels.go:143 cli/app/new.go:377 cli/app/ps.go:213
|
||||
#: 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
|
||||
@ -801,7 +806,7 @@ msgid ""
|
||||
"on your $PATH."
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:377 cli/app/new.go:353 cli/app/rollback.go:353
|
||||
#: cli/app/deploy.go:391 cli/app/new.go:373 cli/app/rollback.go:353
|
||||
#: cli/app/upgrade.go:463
|
||||
msgid "D"
|
||||
msgstr ""
|
||||
@ -927,7 +932,7 @@ msgid ""
|
||||
"Use \"--status/-S\" flag to query all servers for the live deployment status."
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:287
|
||||
#: cli/app/new.go:307
|
||||
msgid "Generate app secrets?"
|
||||
msgstr ""
|
||||
|
||||
@ -1331,7 +1336,7 @@ msgid "Run app commands"
|
||||
msgstr "💻 Ejecutar comandos en una plataforma 🚀"
|
||||
|
||||
#: cli/app/backup.go:303 cli/app/list.go:295 cli/app/logs.go:109
|
||||
#: cli/app/new.go:369
|
||||
#: cli/app/new.go:389
|
||||
msgid "S"
|
||||
msgstr ""
|
||||
|
||||
@ -1339,7 +1344,7 @@ msgstr ""
|
||||
msgid "SECRETS"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:204
|
||||
#: cli/app/new.go:224
|
||||
msgid "SECRETS OVERVIEW"
|
||||
msgstr ""
|
||||
|
||||
@ -1373,7 +1378,7 @@ msgstr ""
|
||||
msgid "STATUS"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:312
|
||||
#: cli/app/new.go:332
|
||||
msgid "Select app server:"
|
||||
msgstr ""
|
||||
|
||||
@ -1412,7 +1417,7 @@ msgstr ""
|
||||
msgid "Specify a server name"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:263
|
||||
#: cli/app/new.go:283
|
||||
msgid "Specify app domain"
|
||||
msgstr ""
|
||||
|
||||
@ -1468,7 +1473,8 @@ msgid ""
|
||||
"Arbitrary secret insertion is not supported. Secrets that are inserted must\n"
|
||||
"match those configured in the recipe beforehand.\n"
|
||||
"\n"
|
||||
"This can be useful when you want to manually generate secrets for an app\n"
|
||||
"This command can be useful when you want to manually generate secrets for an "
|
||||
"app\n"
|
||||
"environment. Typically, you can let Abra generate them for you on app "
|
||||
"creation\n"
|
||||
"(see \"abra app new --secrets/-S\" for more)."
|
||||
@ -1569,7 +1575,7 @@ msgid ""
|
||||
" # and source this file from your PowerShell profile."
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:401 cli/app/rollback.go:369 cli/app/upgrade.go:487
|
||||
#: cli/app/deploy.go:415 cli/app/rollback.go:369 cli/app/upgrade.go:487
|
||||
msgid "U"
|
||||
msgstr ""
|
||||
|
||||
@ -1829,55 +1835,12 @@ msgstr ""
|
||||
|
||||
#. translators: `abra app` aliases. use a comma separated list of aliases with
|
||||
#. no spaces in between
|
||||
#: cli/app/app.go:12
|
||||
msgctxt "abra app"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/backup.go:271
|
||||
msgctxt "app backup"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/restart.go:169
|
||||
msgctxt "app restart"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/secret.go:577
|
||||
msgctxt "app secret generate"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/secret.go:617
|
||||
msgctxt "app secret rm"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/recipe/fetch.go:122
|
||||
msgctxt "recipe fetch"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/recipe/upgrade.go:384
|
||||
msgctxt "recipe upgrade"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#. translators: `abra server add` aliases. use a comma separated list of
|
||||
#. aliases with no spaces in between
|
||||
#: cli/server/add.go:23
|
||||
msgctxt "server add"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/server/prune.go:99
|
||||
msgctxt "server prune"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/app.go:12 cli/app/backup.go:271 cli/app/restart.go:169
|
||||
#: cli/app/secret.go:577 cli/app/secret.go:617 cli/recipe/fetch.go:122
|
||||
#: cli/recipe/upgrade.go:384 cli/server/add.go:23 cli/server/prune.go:99
|
||||
#: cli/updater/updater.go:554
|
||||
msgctxt "abra upgrade"
|
||||
msgid "a"
|
||||
msgstr ""
|
||||
|
||||
@ -2003,7 +1966,7 @@ msgstr ""
|
||||
msgid "attempting to create client for %s"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:212
|
||||
#: pkg/secret/secret.go:222
|
||||
#, c-format
|
||||
msgid "attempting to generate and store %s on %s"
|
||||
msgstr ""
|
||||
@ -2049,7 +2012,7 @@ msgstr "autocompletar [bash|zsh|fish|powershell]"
|
||||
msgid "autocomplete failed: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:371
|
||||
#: cli/app/new.go:391
|
||||
msgid "automatically generate secrets"
|
||||
msgstr ""
|
||||
|
||||
@ -2109,7 +2072,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:385
|
||||
#: 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
|
||||
msgid "c"
|
||||
msgstr ""
|
||||
@ -2245,8 +2208,8 @@ 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:360
|
||||
#: cli/app/labels.go:142 cli/app/new.go:376 cli/app/ps.go:212
|
||||
#: 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
|
||||
@ -2608,7 +2571,7 @@ msgstr ""
|
||||
msgid "deploy labels stanza present"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:395
|
||||
#: cli/app/deploy.go:409
|
||||
#, fuzzy
|
||||
msgid "deploy latest recipe version"
|
||||
msgstr "Publicar una nueva versión de una receta"
|
||||
@ -2711,11 +2674,11 @@ msgstr ""
|
||||
msgid "dirty: %v, "
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:387 cli/app/rollback.go:363 cli/app/upgrade.go:473
|
||||
#: cli/app/deploy.go:401 cli/app/rollback.go:363 cli/app/upgrade.go:473
|
||||
msgid "disable converge logic checks"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:379 cli/app/rollback.go:355 cli/app/upgrade.go:465
|
||||
#: cli/app/deploy.go:393 cli/app/rollback.go:355 cli/app/upgrade.go:465
|
||||
msgid "disable public DNS checks"
|
||||
msgstr ""
|
||||
|
||||
@ -2736,11 +2699,11 @@ msgstr ""
|
||||
msgid "docker: is the daemon running / your user has docker permissions?"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:352
|
||||
#: cli/app/new.go:372
|
||||
msgid "domain"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:355
|
||||
#: cli/app/new.go:375
|
||||
msgid "domain name for app"
|
||||
msgstr ""
|
||||
|
||||
@ -2960,7 +2923,7 @@ msgstr ""
|
||||
|
||||
#. translators: `abra recipe fetch` aliases. use a comma separated list of aliases
|
||||
#. with no spaces in between
|
||||
#: cli/app/deploy.go:369 cli/app/remove.go:163 cli/app/rollback.go:345
|
||||
#: 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
|
||||
msgid "f"
|
||||
@ -3198,7 +3161,7 @@ msgstr ""
|
||||
msgid "for %s read env %s with value: %s from docker service"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:368 cli/app/remove.go:162 cli/app/rollback.go:344
|
||||
#: 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
|
||||
msgid "force"
|
||||
msgstr ""
|
||||
@ -3238,12 +3201,12 @@ msgstr "regenerar [recipe] [flags]"
|
||||
msgid "generate all secrets"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:62 pkg/secret/secret.go:80
|
||||
#: pkg/secret/secret.go:67 pkg/secret/secret.go:85
|
||||
#, c-format
|
||||
msgid "generated %s"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:268
|
||||
#: pkg/secret/secret.go:278
|
||||
#, c-format
|
||||
msgid "generated and stored %v on %s"
|
||||
msgstr ""
|
||||
@ -3420,8 +3383,8 @@ 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:363
|
||||
#: cli/app/labels.go:145 cli/app/new.go:379 cli/app/ps.go:215
|
||||
#: 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
|
||||
@ -3620,7 +3583,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:393 cli/app/logs.go:20
|
||||
#: 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
|
||||
msgid "l"
|
||||
msgstr ""
|
||||
@ -3630,7 +3593,7 @@ msgstr ""
|
||||
msgid "labels <domain> [flags]"
|
||||
msgstr "etiquetas <domain> [flags]"
|
||||
|
||||
#: cli/app/deploy.go:392 cli/app/list.go:183
|
||||
#: cli/app/deploy.go:406 cli/app/list.go:183
|
||||
msgid "latest"
|
||||
msgstr ""
|
||||
|
||||
@ -3825,7 +3788,7 @@ msgstr ""
|
||||
msgid "missing arguments or --all/-a flag"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:126
|
||||
#: pkg/secret/secret.go:131
|
||||
#, c-format
|
||||
msgid "missing version for secret? (%s)"
|
||||
msgstr ""
|
||||
@ -3994,7 +3957,7 @@ msgstr ""
|
||||
msgid "no containers matching the %v filter found?"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:272 cli/internal/validate.go:129
|
||||
#: cli/app/new.go:292 cli/internal/validate.go:129
|
||||
msgid "no domain provided"
|
||||
msgstr ""
|
||||
|
||||
@ -4054,7 +4017,7 @@ msgstr ""
|
||||
msgid "no secrets to remove?"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:321 cli/internal/validate.go:167
|
||||
#: cli/app/new.go:341 cli/internal/validate.go:167
|
||||
msgid "no server provided"
|
||||
msgstr ""
|
||||
|
||||
@ -4114,11 +4077,11 @@ msgstr ""
|
||||
msgid "no volumes to remove"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:384 cli/app/rollback.go:360 cli/app/upgrade.go:470
|
||||
#: cli/app/deploy.go:398 cli/app/rollback.go:360 cli/app/upgrade.go:470
|
||||
msgid "no-converge-checks"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:376 cli/app/rollback.go:352 cli/app/upgrade.go:462
|
||||
#: cli/app/deploy.go:390 cli/app/rollback.go:352 cli/app/upgrade.go:462
|
||||
msgid "no-domain-checks"
|
||||
msgstr ""
|
||||
|
||||
@ -4135,7 +4098,7 @@ msgstr ""
|
||||
msgid "not enough arguments: %s"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:119
|
||||
#: pkg/secret/secret.go:124
|
||||
msgid "not generating app secrets, none enabled in recipe config"
|
||||
msgstr ""
|
||||
|
||||
@ -4197,7 +4160,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:361 cli/app/ps.go:29
|
||||
#: 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
|
||||
@ -4239,7 +4202,7 @@ msgstr ""
|
||||
msgid "parsing recipe version failed: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:360 cli/app/secret.go:560 cli/app/secret.go:584
|
||||
#: cli/app/new.go:380 cli/app/secret.go:560 cli/app/secret.go:584
|
||||
#: cli/app/secret.go:624
|
||||
msgid "pass"
|
||||
msgstr ""
|
||||
@ -4262,7 +4225,7 @@ msgstr ""
|
||||
msgid "pattern"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:371 cli/app/remove.go:165 cli/app/rollback.go:347
|
||||
#: 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
|
||||
msgid "perform action without further prompt"
|
||||
msgstr ""
|
||||
@ -4841,7 +4804,7 @@ msgstr ""
|
||||
#. translators: `abra server` aliases. use a comma separated list of aliases
|
||||
#. with no spaces in between
|
||||
#: cli/app/backup.go:198 cli/app/backup.go:263 cli/app/backup.go:287
|
||||
#: cli/app/list.go:326 cli/app/logs.go:101 cli/app/new.go:338
|
||||
#: cli/app/list.go:326 cli/app/logs.go:101 cli/app/new.go:358
|
||||
#: cli/app/restore.go:114 cli/app/secret.go:535 cli/catalogue/catalogue.go:27
|
||||
#: cli/catalogue/catalogue.go:310 cli/recipe/fetch.go:130 cli/recipe/sync.go:24
|
||||
#: cli/server/server.go:12
|
||||
@ -4862,7 +4825,7 @@ msgstr ""
|
||||
msgid "searching abra.sh for version for %s"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:139
|
||||
#: pkg/secret/secret.go:149
|
||||
#, c-format
|
||||
msgid "secret %s is > %d chars when combined with %s"
|
||||
msgstr ""
|
||||
@ -4886,28 +4849,33 @@ msgstr ""
|
||||
msgid "secret not found: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:310
|
||||
#: cli/app/deploy.go:324
|
||||
#, c-format
|
||||
msgid "secret not generated: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:322
|
||||
#, c-format
|
||||
msgid "secret not inserted (#generate=false): %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/remove.go:123
|
||||
#, c-format
|
||||
msgid "secret: %s removed"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/backup.go:302 cli/app/new.go:368
|
||||
#: cli/app/backup.go:302 cli/app/new.go:388
|
||||
msgid "secrets"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:208
|
||||
#: cli/app/new.go:228
|
||||
#, c-format
|
||||
msgid "secrets are %s shown again, please save them %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: `abra server` command for autocompletion
|
||||
#: cli/app/list.go:325 cli/app/list.go:332 cli/app/new.go:337
|
||||
#: cli/app/new.go:344 cli/run.go:101
|
||||
#: cli/app/list.go:325 cli/app/list.go:332 cli/app/new.go:357
|
||||
#: cli/app/new.go:364 cli/run.go:101
|
||||
msgid "server"
|
||||
msgstr ""
|
||||
|
||||
@ -5009,7 +4977,7 @@ msgstr ""
|
||||
msgid "severity"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:403 cli/app/rollback.go:371 cli/app/upgrade.go:489
|
||||
#: cli/app/deploy.go:417 cli/app/rollback.go:371 cli/app/upgrade.go:489
|
||||
msgid "show all configs & images, including unchanged ones"
|
||||
msgstr ""
|
||||
|
||||
@ -5033,7 +5001,7 @@ msgstr ""
|
||||
msgid "show debug messages"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:400 cli/app/rollback.go:368 cli/app/upgrade.go:486
|
||||
#: cli/app/deploy.go:414 cli/app/rollback.go:368 cli/app/upgrade.go:486
|
||||
msgid "show-unchanged"
|
||||
msgstr ""
|
||||
|
||||
@ -5041,7 +5009,7 @@ msgstr ""
|
||||
msgid "since"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:306
|
||||
#: cli/app/new.go:326
|
||||
#, c-format
|
||||
msgid "single server detected, choosing %s automatically"
|
||||
msgstr ""
|
||||
@ -5089,7 +5057,7 @@ msgstr ""
|
||||
msgid "skipping domain checks, no DOMAIN=... configured"
|
||||
msgstr ""
|
||||
|
||||
#: pkg/secret/secret.go:207
|
||||
#: pkg/secret/secret.go:217
|
||||
#, c-format
|
||||
msgid "skipping generation of %s (generate=false)"
|
||||
msgstr ""
|
||||
@ -5121,7 +5089,7 @@ msgstr ""
|
||||
msgid "specify secret value"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:340
|
||||
#: cli/app/new.go:360
|
||||
msgid "specify server for new app"
|
||||
msgstr ""
|
||||
|
||||
@ -5181,7 +5149,7 @@ msgstr ""
|
||||
msgid "store generated secrets in a local pass store"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:363
|
||||
#: cli/app/new.go:383
|
||||
msgid "store secrets in a local pass store"
|
||||
msgstr ""
|
||||
|
||||
@ -5337,7 +5305,7 @@ msgstr ""
|
||||
msgid "trim input"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/new.go:233 pkg/app/app.go:141
|
||||
#: cli/app/new.go:253 pkg/app/app.go:141
|
||||
#, c-format
|
||||
msgid "trimming %s to %s to avoid runtime limits"
|
||||
msgstr ""
|
||||
@ -5844,32 +5812,32 @@ msgstr ""
|
||||
msgid "version wiped from %s.env"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:337
|
||||
#: cli/app/deploy.go:351
|
||||
#, c-format
|
||||
msgid "version: can not redeploy chaos version %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:324
|
||||
#: cli/app/deploy.go:338
|
||||
#, c-format
|
||||
msgid "version: taking chaos version: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:345
|
||||
#: cli/app/deploy.go:359
|
||||
#, c-format
|
||||
msgid "version: taking deployed version: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:350
|
||||
#: cli/app/deploy.go:364
|
||||
#, c-format
|
||||
msgid "version: taking new recipe version: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:339
|
||||
#: cli/app/deploy.go:353
|
||||
#, c-format
|
||||
msgid "version: taking version from .env file: %s"
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:330
|
||||
#: cli/app/deploy.go:344
|
||||
#, c-format
|
||||
msgid "version: taking version from cli arg: %s"
|
||||
msgstr ""
|
||||
@ -5995,7 +5963,7 @@ msgstr ""
|
||||
msgid "writer: %v, "
|
||||
msgstr ""
|
||||
|
||||
#: cli/app/deploy.go:262 cli/app/new.go:221 cli/app/rollback.go:248
|
||||
#: 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
|
||||
#, c-format
|
||||
msgid "writing recipe version failed: %s"
|
||||
|
@ -50,6 +50,11 @@ type Secret struct {
|
||||
// Will have this remote name:
|
||||
// test_example_com_test_pass_two_v2
|
||||
RemoteName string
|
||||
|
||||
// LocalName iis the name of the secret in the recipe config. This is also
|
||||
// the name that you pass to `abra app secret insert` and is shown on `abra
|
||||
// app secret list`
|
||||
LocalName string
|
||||
}
|
||||
|
||||
// GeneratePassword generates passwords.
|
||||
@ -133,7 +138,12 @@ func ReadSecretsConfig(appEnvPath string, composeFiles []string, stackName strin
|
||||
|
||||
lastIdx := strings.LastIndex(secretConfig.Name, "_")
|
||||
secretVersion := secretConfig.Name[lastIdx+1:]
|
||||
value := Secret{Version: secretVersion, RemoteName: secretConfig.Name}
|
||||
|
||||
value := Secret{
|
||||
Version: secretVersion,
|
||||
RemoteName: secretConfig.Name,
|
||||
LocalName: secretId,
|
||||
}
|
||||
|
||||
if len(value.RemoteName) > config.MAX_DOCKER_SECRET_LENGTH {
|
||||
return nil, errors.New(i18n.G("secret %s is > %d chars when combined with %s", secretId, config.MAX_DOCKER_SECRET_LENGTH, stackName))
|
||||
|
@ -367,6 +367,21 @@ teardown(){
|
||||
|
||||
run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input --no-converge-checks
|
||||
assert_failure
|
||||
assert_output --partial "secret not generated"
|
||||
}
|
||||
|
||||
@test "error if secret not inserted" {
|
||||
run sed -i 's/COMPOSE_FILE="compose.yml"/COMPOSE_FILE="compose.yml:compose.skip_pass.yml"/g' \
|
||||
"$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env"
|
||||
assert_success
|
||||
|
||||
run sed -i 's/#SECRET_TEST_SKIP_PASS_VERSION=v1/SECRET_TEST_SKIP_PASS_VERSION=v1/g' \
|
||||
"$ABRA_DIR/servers/$TEST_SERVER/$TEST_APP_DOMAIN.env"
|
||||
assert_success
|
||||
|
||||
run $ABRA app deploy "$TEST_APP_DOMAIN" --no-input --no-converge-checks
|
||||
assert_failure
|
||||
assert_output --partial "secret not inserted"
|
||||
}
|
||||
|
||||
# bats test_tags=slow
|
||||
|
@ -22,8 +22,15 @@ teardown(){
|
||||
_reset_recipe
|
||||
_reset_tags
|
||||
|
||||
run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
|
||||
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
|
||||
if [[ -f "$ABRA_DIR/recipes/$TEST_RECIPE/foo" ]]; then
|
||||
run rm -rf "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
|
||||
assert_not_exists "$ABRA_DIR/recipes/$TEST_RECIPE/foo"
|
||||
fi
|
||||
|
||||
if [[ -f "$ABRA_DIR/servers/$TEST_SERVER/rauthy.$TEST_APP_DOMAIN.env" ]]; then
|
||||
run rm -rf "$ABRA_DIR/servers/$TEST_SERVER/rauthy.$TEST_APP_DOMAIN.env"
|
||||
assert_not_exists "$ABRA_DIR/servers/$TEST_SERVER/rauthy.$TEST_APP_DOMAIN.env"
|
||||
fi
|
||||
}
|
||||
|
||||
@test "create new app" {
|
||||
@ -270,3 +277,32 @@ teardown(){
|
||||
assert_success
|
||||
refute_output --partial "requires secret generation"
|
||||
}
|
||||
|
||||
@test "do not warn about generation when generate=false" {
|
||||
run $ABRA app new --domain "$TEST_APP_DOMAIN" renovate "1.0.1+41-full"
|
||||
assert_success
|
||||
refute_output --partial "requires secret generation"
|
||||
}
|
||||
|
||||
@test "warn about insertion when generate=false" {
|
||||
run $ABRA app new --domain "$TEST_APP_DOMAIN" renovate "1.0.1+41-full"
|
||||
assert_success
|
||||
assert_output --partial "requires secret insertion"
|
||||
}
|
||||
|
||||
@test "warn about both insert/generate when generate=false/true" {
|
||||
run $ABRA app new rauthy "1.0.0+0.32.3" \
|
||||
--no-input \
|
||||
--server "$TEST_SERVER" \
|
||||
--domain "rauthy.$TEST_APP_DOMAIN"
|
||||
assert_success
|
||||
assert_exists "$ABRA_DIR/servers/$TEST_SERVER/rauthy.$TEST_APP_DOMAIN.env"
|
||||
assert_output --partial "requires secret generation"
|
||||
assert_output --partial "requires secret insertion"
|
||||
}
|
||||
|
||||
@test "no warn about generation if already generated" {
|
||||
run $ABRA app new "$TEST_RECIPE" --domain "$TEST_APP_DOMAIN" --secrets
|
||||
assert_success
|
||||
refute_output --partial "requires secret generation"
|
||||
}
|
||||
|
Reference in New Issue
Block a user