-
Notifications
You must be signed in to change notification settings - Fork 756
update canary status before eventing #1780
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: luisr-escobar <[email protected]>
@aryan9600 @stefanprodan would you be able to take a look at this PR? |
Signed-off-by: luisr-escobar <[email protected]>
Signed-off-by: luisr-escobar <[email protected]>
pkg/controller/scheduler.go
Outdated
@@ -866,6 +873,12 @@ func (c *Controller) checkCanaryStatus(canary *flaggerv1.Canary, canaryControlle | |||
} | |||
|
|||
var err error | |||
// update canary status to ensure checksum is up to date in all webhooks | |||
if err := canaryController.SyncStatus(canary, flaggerv1.CanaryStatus{Phase: flaggerv1.CanaryPhaseProgressing}); err != nil { |
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.
I think this will break the whole thing, we can't set CanaryPhaseProgressing
here, the canary status is synced only in shouldAdvance
.
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.
@stefanprodan local integration tests are passing and also validated that the image generated by this change works on a dev cluster but to your point I've moved the code block under shouldAdvance
Signed-off-by: luisr-escobar <[email protected]>
Hi @stefanprodan please let me know if any further updates are needed |
There is currently a mismatch on the checksum of the generated canary inital events compared to the subsequent events which is caused by the canary object status field
lastAppliedSpec
not being updated before the initial events are sent.