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

Run confirm-rollout checks only before scaling up deployment #1414

Merged
merged 1 commit into from
May 8, 2023

Conversation

aryan9600
Copy link
Member

Currently, the confirm-rollout webhook is called on every canary run, regardless of its phase. This PR changes the scheduler to run it only when a canary run is triggered and right before the canary deployment is scaled up. Furthermore, the webhook is now called with the current phase of the canary instead of Progressing regardless of the actual phase.

@codecov-commenter
Copy link

codecov-commenter commented Apr 14, 2023

Codecov Report

Patch coverage: 53.57% and project coverage change: +0.04 🎉

Comparison is base (7b17286) 54.62% compared to head (495a5b2) 54.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1414      +/-   ##
==========================================
+ Coverage   54.62%   54.67%   +0.04%     
==========================================
  Files          84       84              
  Lines       10114    10114              
==========================================
+ Hits         5525     5530       +5     
+ Misses       3936     3929       -7     
- Partials      653      655       +2     
Impacted Files Coverage Δ
pkg/controller/scheduler_hooks.go 13.79% <0.00%> (+1.54%) ⬆️
pkg/controller/scheduler.go 45.46% <57.69%> (-0.01%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aryan9600 aryan9600 added the kind/bug Something isn't working label May 2, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @aryan9600

Run the `confirm-rollout` webhook check right before scaling up the
deployment only, instead of running it on every loop.

Signed-off-by: Sanskar Jaiswal <[email protected]>
@aryan9600 aryan9600 merged commit 15a6f74 into main May 8, 2023
@aryan9600 aryan9600 deleted the confirm-rollout branch May 8, 2023 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants