-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
Codecov ReportAttention: Patch coverage is
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. |
@@ -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 { |
There was a problem hiding this comment.
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.
Proposed changes
Implements support for requesting a re-sync of the stack (i.e.
pulumi up
) using thepulumi.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