-
Notifications
You must be signed in to change notification settings - Fork 738
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
Add canary analysis schedule interval to CRD #20
Conversation
Codecov Report
@@ Coverage Diff @@
## master #20 +/- ##
==========================================
- Coverage 50.95% 49.53% -1.42%
==========================================
Files 7 8 +1
Lines 942 969 +27
==========================================
Hits 480 480
- Misses 381 408 +27
Partials 81 81
Continue to review full report at Codecov.
|
- new field canaryAnalysis.interval
if r.Spec.TargetRef.Kind == "Deployment" { | ||
go c.advanceCanary(r.Name, r.Namespace) | ||
canary := value.(*flaggerv1.Canary) | ||
name := key.(string) |
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.
nit: It'd be good to have a comment to show what these keys look like, it's hard to tell from the code. I'd assume it's something like <namespace>/<name>
, but I'm not sure exactly.
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.
Yes it's <name>.<namespace>
I'll add a comment thanks!
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.
👍
- use anyOf as a workaround for the openAPI object validation not accepting empty values - fix #23
Make the analysis schedule configurable fix: #19
The above analysis, if it succeeds, will run for 25 minutes while validating the HTTP metrics and webhooks every minute.
You can determine the minimum time that it takes to validate and promote a canary deployment using this formula:
And the time it takes for a canary to be rollback when the metrics or webhooks checks are failing: