-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fine-grained control over canary: add canary-weight-total to configure the total weight #6338
Conversation
config.WeightTotal, err = parser.GetIntAnnotation("canary-weight-total", ing) | ||
if err != nil { | ||
config.WeightTotal = 100 | ||
} |
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.
in Lua script, < 100 value is ignored and the value defaults to 100, should we add this logic here too?
/assign @ElvinEfendi |
78831be
to
518ae57
Compare
Codecov Report
@@ Coverage Diff @@
## master #6338 +/- ##
==========================================
+ Coverage 55.81% 55.87% +0.05%
==========================================
Files 89 89
Lines 6358 6362 +4
==========================================
+ Hits 3549 3555 +6
+ Misses 2369 2368 -1
+ Partials 440 439 -1
Continue to review full report at Codecov.
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
@ElvinEfendi what do you think? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/kind feature |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@cofyc build is failing |
working on it |
fixed |
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.
/lgtm
/remove-lifecycle stale |
Maybe I'm missing context but it seems that weight is the same thing as weight total except for the fact that we can go to 1000. Shouldn't we simply reuse the weight variable? Update: after reading the docs, I see that both are needed in order to be used one allows you to increase the other. |
@cofyc friendly ping to consider the comment of @larivierec |
I think it's a good idea if it's ok to convert |
@cofyc @larivierec my opinion on this is, even though it may make sense, let's just get this PR merged if everything is fine. Having the possibility to be more precise on the weight using float can be a follow-up issue. |
doesn't bother me, we should create an issue to follow up though |
created a follow up issue: #7971 @cofyc @larivierec FYI |
/triage accepted |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cofyc, iamNoah1, strongjz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Try to fine-grained control over canary weight.
Alternatively, we can allow the fraction part in the
canary-weight
, but how many fraction digits should we allow?Types of changes
Which issue/s this PR fixes
fixes #6337
How Has This Been Tested?
Checklist: