rix
d21c35965d
fix: add warning for long secret names ( !359 )
...
continuous-integration/drone/push Build is passing
A start of a fix for coop-cloud/organising#463
Putting some code out to start a discussion. I've added a linting rule for recipes to establish a general principal but I want to put some validation into cli/app/new.go as that's the point we have both the recipe and the domain and can say for sure whether or not the secret names lengths cause a problem but that will have to wait for a bit. Let me know if I've missed the mark somewhere
Reviewed-on: coop-cloud/abra#359
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech >
Co-authored-by: Rich M <r.p.makepeace@gmail.com >
Co-committed-by: Rich M <r.p.makepeace@gmail.com >
2024-04-06 21:41:37 +00:00
decentral1se
575f9905f1
Revert "Revert "feat: backup revolution""
...
continuous-integration/drone/push Build is passing
This reverts commit 2c515ce70a .
2024-03-12 10:34:40 +01:00
decentral1se
2c515ce70a
Revert "feat: backup revolution"
...
This reverts commit c5687dfbd7 .
This is a temporary measure to facilitate a release which won't
completely explode peoples workflows (missing command logic). We
re-instate this commit after the first 0.9.x release.
2024-03-12 10:03:42 +01:00
decentral1se
c5687dfbd7
feat: backup revolution
...
continuous-integration/drone/push Build is passing
See coop-cloud/organising#485
2024-01-12 22:01:08 +01:00
p4u1
ca91abbed9
fix: correct append service name logic in Filters function ( !396 )
...
continuous-integration/drone/push Build is passing
This fixes a regression introduced by #395
Reviewed-on: coop-cloud/abra#396
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net >
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net >
2023-12-22 12:08:12 +00:00
p4u1
d4727db8f9
feat: abra app logs shows task errors ( !395 )
...
continuous-integration/drone/push Build is passing
The log command now checks for the ready state in the task list. If it is not ready. It shows the task logs. This might look like this:
```
ERRO[0000] Service abra-test-recipe_default_app: State rejected: No such image: ngaaaax:1.21.0
ERRO[0000] Service abra-test-recipe_default_app: State preparing:
ERRO[0000] Service abra-test-recipe_default_app: State rejected: No such image: ngaaaax:1.21.0
ERRO[0000] Service abra-test-recipe_default_app: State rejected: No such image: ngaaaax:1.21.0
ERRO[0000] Service abra-test-recipe_default_app: State rejected: No such image: ngaaaax:1.21.0
```
Closes coop-cloud/organising#518
Reviewed-on: coop-cloud/abra#395
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech >
Co-authored-by: p4u1 <p4u1_f4u1@riseup.net >
Co-committed-by: p4u1 <p4u1_f4u1@riseup.net >
2023-12-14 13:15:24 +00:00
test
99e3ed416f
fix: secret name generation when secretId is not part of the secret name
continuous-integration/drone/push Build is passing
2023-12-04 21:52:09 +00:00
p4u1
3957b7c965
proper env modifiers support
...
continuous-integration/drone/push Build is passing
This implements proper modifier support in the env file using this new fork of the godotenv library. The modifier implementation is quite basic for but can be improved later if needed. See this commit for the actual implementation.
Because we are now using proper modifer parsing, it does not affect the parsing of value, so this is possible again:
```
MY_VAR="#foo"
```
Closes coop-cloud/organising#535
2023-12-01 11:03:52 +00:00
decentral1se
6e54ec7213
test: skip failing test for now
...
continuous-integration/drone/push Build is passing
See coop-cloud/organising#535 .
2023-11-28 11:42:36 +01:00
knoflook
ccf0215495
hotfix: parse values starting with # correctly
continuous-integration/drone/push Build is failing
2023-10-23 19:21:45 +02:00
decentral1se
254df7f2be
feat: app cmd ls
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
See coop-cloud/organising#484
2023-10-17 21:16:31 +02:00
decentral1se
c249c6ae9c
fix: fix: trim comments that are not modifers
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
See coop-cloud/organising#505
2023-10-09 14:42:05 +02:00
decentral1se
be693e9df0
fix: trim comments that are not modifers
...
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
See coop-cloud/organising#505
2023-10-08 22:42:34 +02:00
decentral1se
b57edb440a
fix: improve app check
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
See coop-cloud/organising#446
2023-10-06 10:56:33 +02:00
decentral1se
b4fd39828f
test: abra-integration-test-recipe -> abra-test-recipe
...
continuous-integration/drone/push Build is passing
See coop-cloud/abra-test-recipe#3
2023-10-05 14:22:11 +02:00
decentral1se
e837835e00
test: remove duplicate call to EnsureCatalogue
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2023-10-04 14:05:02 +02:00
decentral1se
c646263e9e
fix: validate COMPOSE_FILE
...
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
See coop-cloud/organising#468 .
See coop-cloud/organising#376 .
2023-10-04 13:27:04 +02:00
decentral1se
379915587c
fix: don't export from within function
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Also, don't explode on command function which has "export" in the name!
See coop-cloud/organising#498
2023-10-04 11:20:50 +02:00
decentral1se
970ae0fc4e
test: use _test to avoid cyclic imports
2023-10-04 02:36:44 +02:00
decentral1se
d02f659bf8
fix: secrets from config, --offline/chaos handling, typos
...
See coop-cloud/organising#464
2023-09-25 10:31:59 +02:00
decentral1se
0be532692d
test: moar integration tests [ci skip]
continuous-integration/drone/pr Build is failing
2023-09-20 13:51:06 +02:00
decentral1se
58e78e4d7c
fix: overridable ABRA_DIR
continuous-integration/drone/push Build is failing
2023-09-05 09:58:13 +00:00
decentral1se
18dc6e9434
feat: support abra testing mode
2023-09-05 09:58:13 +00:00
moritz
31ec322c55
feat(deploy): set timeout via label ( !290 )
...
continuous-integration/drone/push Build is passing
Solves coop-cloud/organising#437
A timeout can be specified globally for a recipe using this label:
`coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}`. This sets the default timeout to 120s. An app specific timeout can be set using the env `TIMEOUT`.
Co-authored-by: Moritz <moritz.m@local-it.org >
Reviewed-on: coop-cloud/abra#290
2023-04-14 14:44:18 +00:00
moritz
edff63b446
Revert "review: change label autoupdate -> auto-update"
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
This reverts commit 74baa76f5ee5e5dd7b71b1f14be97cc40dfc611b.
2023-03-07 13:24:46 +01:00
moritz
cb33edaac3
review: change label autoupdate -> auto-update
2023-03-07 13:24:46 +01:00
moritz
e9879e2226
review: label convention chaos_version -> chaos-version
2023-03-07 13:24:46 +01:00
moritz
d120299929
feat(list): show autoupdate state
2023-03-07 13:24:46 +01:00
moritz
3753357ef8
feat(list): show chaos status and chaos version
2023-03-07 13:24:46 +01:00
moritz
611430aab2
Set chaos version label for each deployed or upgraded app
2023-03-07 13:24:46 +01:00
decentral1se
eec6469ba1
fix: Change error message to reflect RECIPE -> TYPE
...
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
Closes coop-cloud/organising#409
2023-02-12 16:40:48 +01:00
decentral1se
e94f947d20
fix: don't create clients twice per server
...
continuous-integration/drone/push Build is passing
Closes coop-cloud/organising#407
2023-02-12 00:02:59 +01:00
decentral1se
fadafda0b8
fix: make test suite work again
2023-02-08 11:11:39 +01:00
decentral1se
7c1a97be72
refactor!: consolidate SSH handling
...
continuous-integration/drone/push Build is failing
Closes coop-cloud/organising#389 .
Closes coop-cloud/organising#341 .
Closes coop-cloud/organising#326 .
Closes coop-cloud/organising#380 .
Closes coop-cloud/organising#360 .
2023-02-02 08:37:14 +00:00
moritz
76717531bd
resolve PR: include the service info in the log message
continuous-integration/drone/push Build is failing
2023-01-31 16:15:11 +01:00
moritz
6774893412
add env ENABLE_AUTO_UPDATE as label to enable/disable the auto update process
continuous-integration/drone/pr Build was killed
2023-01-31 16:12:02 +01:00
moritz
ebb86391af
add a label to signal that a deploy is a chaos deploy ( !265 )
...
continuous-integration/drone/push Build is failing
Resolves coop-cloud/organising#390 by adding the following label `coop-cloud.${STACK_NAME}.chaos=true` (according to the version label).
This is required for the auto updater coop-cloud/organising#236 (comment)
Co-authored-by: Moritz <moritz.m@local-it.org >
Reviewed-on: coop-cloud/abra#265
2023-01-31 15:06:35 +00:00
moritz
50db39424c
add a label to signal that a deploy is connected with a recipe ( !264 )
...
continuous-integration/drone/push Build is failing
Resolves coop-cloud/organising#391 by adding the following label `coop-cloud.${STACK_NAME}.recipe=${RECIPE}` (according to the version label).
This is required for the auto updater coop-cloud/organising#236 (comment)
Co-authored-by: Moritz <moritz.m@local-it.org >
Reviewed-on: coop-cloud/abra#264
2023-01-31 14:35:43 +00:00
moritz
ca1ea32c46
Expose all env vars to app container. ( !263 )
...
continuous-integration/drone/push Build is failing
Resolves coop-cloud/organising#393 and is required for the auto updater coop-cloud/organising#236 (comment)
Co-authored-by: Moritz <moritz.m@local-it.org >
Reviewed-on: coop-cloud/abra#263
2023-01-31 14:13:43 +00:00
decentral1se
27e0708ac7
fix: don't delete server dir on cleanup if not empty
...
Part of coop-cloud/organising#325 .
2023-01-23 13:56:27 +01:00
decentral1se
521570224b
Merge branch 'filter-servers-by-recipe'
continuous-integration/drone/push Build is failing
2023-01-23 09:33:31 +01:00
decentral1se
49865c6a97
feat: app services command
...
continuous-integration/drone/push Build was killed
Closes coop-cloud/organising#372
2023-01-23 08:25:17 +00:00
decentral1se
a694c8c20e
feat: filter server by recipe
...
Closes coop-cloud/organising#363
2023-01-23 00:54:22 +01:00
decentral1se
32de2ee5de
fix: ensure catalogue is clean/up-to-date
...
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
Closes coop-cloud/organising#367
2023-01-22 17:52:36 +01:00
3wordchant
b204b289d1
fix: disable progress bar with machine-readable output
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-12-16 10:20:51 -08:00
3wordchant
a21d431541
fix: don't panic() 😅
continuous-integration/drone/push Build is passing
2022-11-24 17:33:59 +00:00
3wordchant
8fad34e430
fix: switch back to replacing <recipe>.example.com
...
Fixes #355
2022-11-24 17:33:59 +00:00
decentral1se
b27acb2f61
feat: backup/restore [ci skip]
...
continuous-integration/drone/pr Build is passing
See coop-cloud/organising#30 .
2022-04-03 18:24:09 +02:00
decentral1se
323f4467c8
fix: filtering requires case-by-case handling
...
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build was killed
See https://github.com/moby/moby/issues/32985 .
2022-03-30 16:25:38 +02:00
decentral1se
6aa23a76a1
fix: more precise filtering
...
continuous-integration/drone/push Build is passing
Closes coop-cloud/organising#305 .
2022-03-27 19:30:36 +00:00