add label to enable/disable the auto update process #267

Merged
decentral1se merged 2 commits from moritz/abra:update_label into main 2023-02-01 06:25:44 +00:00
Member

A suggestion for enabling/disabling automatic updates per env variable ENABLE_AUTO_UPDATE=true.
This is required for the auto updater coop-cloud/organising#236 (comment)

It adds the label coop-cloud.${STACK_NAME}.autoupdate=${ENABLE_AUTO_UPDATE}.
With a label it is easier to access the value without parsing all the environment variables.

A suggestion for enabling/disabling automatic updates per env variable `ENABLE_AUTO_UPDATE=true`. This is required for the auto updater https://git.coopcloud.tech/coop-cloud/organising/issues/236#issuecomment-14870 It adds the label `coop-cloud.${STACK_NAME}.autoupdate=${ENABLE_AUTO_UPDATE}`. With a label it is easier to access the value without parsing all the environment variables.
decentral1se approved these changes 2023-01-31 12:58:04 +00:00
decentral1se left a comment
Owner

This looks legit to me!

It seems consisent to me that we'd require people to opt-in to auto-update. That does assume that a missing label = don't update. Assume that will be reflected in the auto-updater logic.

I think this change is missing docs, do you want to write them now? It's OK if you want to keep experimenting first. In that case, I'd open up a separate ticket so we remember to document what we're doing.

Maybe @3wordchant @knoflook have a review for this?

This looks legit to me! It seems consisent to me that we'd require people to opt-in to auto-update. That does assume that a missing label = don't update. Assume that will be reflected in the auto-updater logic. I think this change is missing docs, do you want to write them now? It's OK if you want to keep experimenting first. In that case, I'd open up a separate ticket so we remember to document what we're doing. Maybe @3wordchant @knoflook have a review for this?
@ -448,2 +448,4 @@
return compose, nil
}
// add env ENABLE_AUTO_UPDATE as label to enable/disable the auto update process for this app
Owner

Go doc needs a thing like the following to generate well:

// SetUpdateLabel adds an env ...
Go doc needs a thing like the following to generate well: ```go // SetUpdateLabel adds an env ... ```
moritz marked this conversation as resolved
moritz force-pushed update_label from 79fd23695e to 6774893412 2023-01-31 15:14:43 +00:00 Compare
moritz added 1 commit 2023-01-31 15:19:51 +00:00
continuous-integration/drone/push Build is failing Details
76717531bd
resolve PR: include the service info in the log message
decentral1se merged commit 76717531bd into main 2023-02-01 06:25:44 +00:00
moritz deleted branch update_label 2023-02-01 11:15:20 +00:00
Sign in to join this conversation.
No description provided.