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 event logging GC failure #659

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Avoid event logging GC failure #659

merged 1 commit into from
Apr 7, 2022

Conversation

darkowlzz
Copy link
Contributor

@darkowlzz darkowlzz commented Apr 7, 2022

We try to avoid affecting the source reconciliation when there's a
garbage collection related failure.

The event logging was resulting in events and notifications related to
GC failure when the artifact directory isn't present initially in the first
reconciliation of an object.

This change reverts to how it was before, refer https://github.com/fluxcd/source-controller/blob/v0.22.5/controllers/gitrepository_controller.go#L711-L718 .

We try to avoid affecting the source reconciliation when there's a
garbage collection related failure.

The event logging was resulting in events and notifications related to
GC failure when the artifact directory isn't created in the first
reconciliation of an object.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
@hiddeco hiddeco added the area/storage Storage related issues and pull requests label Apr 7, 2022
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Thanks @darkowlzz ☀️ 🙇

Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @darkowlzz!

LGTM

@darkowlzz darkowlzz merged commit 73aa3c4 into main Apr 7, 2022
@darkowlzz darkowlzz deleted the gc-fail-event-fix branch April 7, 2022 16:07
@aryan9600
Copy link
Member

Thanks a lot for this @darkowlzz 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/storage Storage related issues and pull requests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants