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

Add notify() in all the reconcilers #624

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Add notify() in all the reconcilers #624

merged 1 commit into from
Apr 7, 2022

Conversation

darkowlzz
Copy link
Contributor

@darkowlzz darkowlzz commented Mar 18, 2022

notify() is used to emit events for new artifact and failure recovery
scenarios. It's implemented in all the reconcilers.
Previously, when there used to be a failure due to any reason, on a
subsequent successful reconciliation, no notification was sent to
indicate that the failure has been resolved.
With notify(), the old version of the object is compared with the new
version of the object to determine that all, if any, of the failures have
been resolved and a notification is sent. The notification message is
the same that's sent in usual successful source reconciliation message
about stored artifact.

Failure and immediate success notification looks like the following in
case of GitRepo:

new-git-repo-recovery

Similarly, for bucket, if the credentials are deleted for an existing bucket
and added back:

new2-bucket-recovery

@darkowlzz darkowlzz force-pushed the recovery-event branch 3 times, most recently from e842cf7 to ef6d576 Compare April 5, 2022 17:39
@darkowlzz darkowlzz marked this pull request as ready for review April 5, 2022 18:29
@darkowlzz darkowlzz added the enhancement New feature or request label Apr 5, 2022
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Great improvement! Thanks @darkowlzz

notify() is used to emit events for new artifact and failure recovery
scenarios. It's implemented in all the reconcilers.
Previously, when there used to be a failure due to any reason, on a
subsequent successful reconciliation, no notification was sent to
indicate that the failure has been resolved.
With notify(), the old version of the object is compared with the new
version of the object to determine if all, if any, of the failures have
been resolved and a notification is sent. The notification message is
the same that's sent in usual successful source reconciliation message
about stored artifact.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
@darkowlzz darkowlzz merged commit f2ae578 into main Apr 7, 2022
@darkowlzz darkowlzz deleted the recovery-event branch April 7, 2022 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants