Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid repeated notifications (of available updates) when using Watchtower in "monitor only" mode #1962

Open
truppelito opened this issue Apr 12, 2024 · 1 comment

Comments

@truppelito
Copy link

truppelito commented Apr 12, 2024

Is your feature request related to a problem? Please describe.

If I update my containers automatically there may be issues during the update that I then only find out later. To avoid this, I update my containers manually. Nevertheless, I find it useful to know when updates are available. Therefore, I have Watchtower configured in "monitor only" mode and sending notifications to a Mattermost server. A scan is performed once per day.

My issue is as follows. Say one day Watchtower performs a scan and finds a container X with a new image version available with hash YYY. A notification is sent. Now let's say I'm on vacation for two weeks and unable to update the container. I will receive a notification every day until I do, which is annoying and unnecessary. One notification would suffice.

I may also not want to update a certain container, for whatever reason. Once again, receiving multiple notifications with the exact same information is unnecessary.

Describe the solution you'd like

My request: would it be possible for Watchtower to remember what notifications it has already sent (activated/deactivated by config argument, of course). That way, if a new image with hash YYY is available for container X, no matter how many scans are performed, only one notification is sent. Later a new-new image with hash ZZZ is available for X, send a notification again. But at least only one notification is sent per version.

Describe alternatives you've considered

Either accepting the notifications every day, or just rolling my own script to do what Watchtower does...

Additional context

No response

Copy link

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant