mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
feat: make head pull failure warning toggleable (#912)
* feat: make head pull failure warning toggleable * expect prometheus tests to go through EVENTUALLY * wait for queue to be empty before checking test conditions * clean up new head failure toggle * fixup! clean up new head failure toggle * test: add registry tests * test: add warn on head failure tests * fix client interface and make tests hit more lines * make all tests use NewClient instead of creating a struct pointer * fix lint issues Co-authored-by: Simon Aronsson <simme@arcticbit.se>
This commit is contained in:
parent
23572add74
commit
b4cf17d33f
13 changed files with 148 additions and 647 deletions
|
|
@ -132,6 +132,7 @@ func PreRun(cmd *cobra.Command, _ []string) {
|
|||
includeRestarting, _ := f.GetBool("include-restarting")
|
||||
reviveStopped, _ := f.GetBool("revive-stopped")
|
||||
removeVolumes, _ := f.GetBool("remove-volumes")
|
||||
warnOnHeadPullFailed, _ := f.GetString("warn-on-head-failure")
|
||||
|
||||
if monitorOnly && noPull {
|
||||
log.Warn("Using `WATCHTOWER_NO_PULL` and `WATCHTOWER_MONITOR_ONLY` simultaneously might lead to no action being taken at all. If this is intentional, you may safely ignore this message.")
|
||||
|
|
@ -143,6 +144,7 @@ func PreRun(cmd *cobra.Command, _ []string) {
|
|||
reviveStopped,
|
||||
removeVolumes,
|
||||
includeRestarting,
|
||||
warnOnHeadPullFailed,
|
||||
)
|
||||
|
||||
notifier = notifications.NewNotifier(cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue