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

support for ReconcileRequest annotation #745

Merged
merged 5 commits into from
Nov 9, 2024
Merged

support for ReconcileRequest annotation #745

merged 5 commits into from
Nov 9, 2024

Conversation

EronWright
Copy link
Contributor

@EronWright EronWright commented Nov 8, 2024

Proposed changes

Implements support for requesting a re-sync of the stack (i.e. pulumi up) using the
pulumi.com/reconciliation-request annotation.

The logic of checking the prerequisites was moved to be after the check for "is synced", since the prereq check has the side-effect of touching the parent stack, and that shouldn't happen unless the child is needing a sync.

Related issues (optional)

Closes #672
Closes #398

@EronWright EronWright requested a review from blampe November 8, 2024 20:21
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 69.60000% with 38 lines in your changes missing coverage. Please review.

Project coverage is 50.70%. Comparing base (ddd4ac4) to head (fa23579).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
...tor/internal/controller/pulumi/stack_controller.go 69.60% 35 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #745      +/-   ##
==========================================
+ Coverage   50.47%   50.70%   +0.23%     
==========================================
  Files          30       30              
  Lines        4115     4171      +56     
==========================================
+ Hits         2077     2115      +38     
- Misses       1854     1872      +18     
  Partials      184      184              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -865,7 +920,7 @@ func (r *StackReconciler) markStackFailed(sess *stackReconcilerSession, instance
if last != nil {
instance.Status.LastUpdate.LastSuccessfulCommit = last.LastSuccessfulCommit
}
if last != nil && last.Generation == current.Generation {
if last != nil && last.Generation == current.Generation && last.ReconcileRequest == current.ReconcileRequest {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rationale: reset the backoff when a resync is requested.

@EronWright EronWright marked this pull request as ready for review November 9, 2024 21:26
@EronWright EronWright merged commit b9aba86 into master Nov 9, 2024
7 checks passed
@EronWright EronWright deleted the issue-672 branch November 9, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants