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

Fix HelmRelease reconciliation loop #703

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Fix HelmRelease reconciliation loop #703

merged 1 commit into from
Jun 20, 2023

Conversation

relu
Copy link
Member

@relu relu commented Jun 20, 2023

Likely after the upgrade to controller-runtime v0.15.0 a regression surfaced for long-running reconciliations of HelmRelease resources (e.g. for charts having pre-upgrade hooks taking a few minutes to complete). This regression would cause the controller to immediately re-run the upgrade after a successful upgrade, thus entering an almost-endless loop.

Apparently, the only fix to this issue is to ensure .Status.LastReleaseRevision is updated as soon as possible in the reconiliation cycle rather than wait for the update at the end of the cycle.

Likely after the upgrade to controller-runtime v0.15.0 a regression
surfaced for long-running reconciliations of HelmRelease resources (e.g.
for charts having pre-upgrade hooks taking a few minutes to complete).
This regression would cause the controller to immediately re-run the
upgrade after a successful upgrade, thus entering an almost-endless
loop.

Apparently, the only fix to this issue is to ensure
`.Status.LastReleaseRevision` is updated as soon as possible in the
reconiliation cycle rather than wait for the update at the end of the
cycle.

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
@relu relu requested a review from hiddeco June 20, 2023 11:58
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.

As I am working on rewriting this as a whole, getting this in now without deep investigation is the easiest way to go.

@relu relu merged commit 053a20f into main Jun 20, 2023
@relu relu deleted the fix-hr-reconcile-loop branch June 20, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants