app ls --status shows more detailles about the deployment state #280

Merged
moritz merged 8 commits from detailed_app_list into main 2023-03-07 12:32:19 +00:00
Member

This PR adds the chaos state, the chaos version and the autoupdate state to the deployment details of abra app ls --status.
The label coop-cloud.<app_name>.chaos_version is used to store the chaos version. This solves coop-cloud/organising#429

This PR adds the chaos state, the chaos version and the autoupdate state to the deployment details of `abra app ls --status`. The label `coop-cloud.<app_name>.chaos_version` is used to store the chaos version. This solves https://git.coopcloud.tech/coop-cloud/organising/issues/429
decentral1se reviewed 2023-03-05 10:32:36 +00:00
decentral1se left a comment
Owner

Amazing work @moritz! Love this change and it will really help us. The table output is getting quite long now, so I'm wondering if folks have concerns about that? I think each column is pretty useful to have. Especially when we have a chaos deployment label but no version, that can happen with todays abra. But then again, that won't be the case later, in say, a years time? If you have a chaos labeled deploy then you will have the version? We could merge these columns potentially, I'm not sure. Or maybe remove it later on?

Amazing work @moritz! Love this change and it will really help us. The table output is getting quite long now, so I'm wondering if folks have concerns about that? I think each column is pretty useful to have. Especially when we have a chaos deployment label but no version, that can happen with todays `abra`. But then again, that won't be the case later, in say, a years time? If you have a chaos labeled deploy then you will have the version? We could merge these columns potentially, I'm not sure. Or maybe remove it later on?
@ -183,6 +183,7 @@ recipes.
config.ExposeAllEnv(stackName, compose, app.Env)
config.SetRecipeLabel(compose, stackName, app.Recipe)
config.SetChaosLabel(compose, stackName, internal.Chaos)
config.SetChaosVersionLabel(compose, app.StackName(), chosenDowngrade)
Owner

app.StackName() -> stackName

`app.StackName()` -> `stackName`
moritz marked this conversation as resolved
@ -194,6 +194,7 @@ recipes.
config.ExposeAllEnv(stackName, compose, app.Env)
config.SetRecipeLabel(compose, stackName, app.Recipe)
config.SetChaosLabel(compose, stackName, internal.Chaos)
config.SetChaosVersionLabel(compose, app.StackName(), chosenUpgrade)
Owner

app.StackName() -> stackName

`app.StackName()` -> `stackName`
moritz marked this conversation as resolved
@ -139,6 +139,7 @@ func DeployAction(c *cli.Context) error {
config.ExposeAllEnv(app.StackName(), compose, app.Env)
config.SetRecipeLabel(compose, app.StackName(), app.Recipe)
config.SetChaosLabel(compose, app.StackName(), Chaos)
config.SetChaosVersionLabel(compose, app.StackName(), version)
Owner

Oops, can we make all the app.StackName() calls one stackName too? To avoid computing this several times...

Oops, can we make all the `app.StackName()` calls one `stackName` too? To avoid computing this several times...
moritz marked this conversation as resolved
@ -407,0 +409,4 @@
result["chaos"] = chaos
}
labelKey = fmt.Sprintf("coop-cloud.%s.chaos_version", name)
Owner

chaos_version -> chaos-version following the convention of -? This would require updating in several places in this PR.

`chaos_version` -> `chaos-version` following the convention of `-`? This would require updating in several places in this PR.
moritz marked this conversation as resolved
@ -407,0 +414,4 @@
result["chaosVersion"] = chaosVersion
}
labelKey = fmt.Sprintf("coop-cloud.%s.autoupdate", name)
Owner

Is autoupdate -> auto-update potentially more readable?

Is `autoupdate` -> `auto-update` potentially more readable?
Author
Member

This would be a bit more readable but it would break kadabra for for all apps that are deployed with the current abra version.
Kadabra is still alpha, so breaking changes are part of it, but I don't think this label change is really worth the effort to redeploy all apps after the next abra release.

This would be a bit more readable but it would break kadabra for for all apps that are deployed with the current abra version. Kadabra is still alpha, so breaking changes are part of it, but I don't think this label change is really worth the effort to redeploy all apps after the next abra release.
decentral1se marked this conversation as resolved
moritz force-pushed detailed_app_list from 4bb2fb6b63 to edff63b446 2023-03-07 12:25:51 +00:00 Compare
moritz merged commit 0ce8b3a5c2 into main 2023-03-07 12:32:01 +00:00
Sign in to join this conversation.
No description provided.