Adding new runtime param delay-days that is used to control whether container is updated to new image immediately or wait until the indicated days have passed

This commit is contained in:
Peter Wilhelm 2023-12-17 19:58:33 -06:00
parent 0a14f3aa9c
commit a8279b47fe
5 changed files with 59 additions and 4 deletions

View file

@ -147,6 +147,12 @@ func RegisterSystemFlags(rootCmd *cobra.Command) {
envBool("WATCHTOWER_LIFECYCLE_HOOKS"),
"Enable the execution of commands triggered by pre- and post-update lifecycle hooks")
flags.IntP(
"delay-days",
"0",
envInt("WATCHTOWER_DELAY_DAYS"),
"Number of days to wait for new image version to be in place prior to installing it")
flags.BoolP(
"rolling-restart",
"",