-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Simplify checking in getMinTolerationTime #79443
Conversation
@mborsz |
/lgtm |
ping @bowei for review |
Can you couple this with a bugfix? This patch just fixes a single spelling mistake. |
The above is count of typo fixes |
@bowei
I can push up one change which optimizes out the 'minTolerationTime == -1' check by changing initial value for minTolerationTime Let me know what you think. |
/test pull-kubernetes-integration |
/test pull-kubernetes-e2e-gce-100-performance |
2 similar comments
/test pull-kubernetes-e2e-gce-100-performance |
/test pull-kubernetes-e2e-gce-100-performance |
@bowei After my PR, the wasteful check doesn't exist. |
/test pull-kubernetes-e2e-gce |
@bowei |
add test cases in the unit tests for
|
@bowei |
/lgtm |
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, tedyu 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 type of PR is this?
/kind bug
What this PR does / why we need it:
In getMinTolerationTime (taint_manager.go),
when tolerationSeconds >= minTolerationTime, even if minTolerationTime has been set in prior iteration (!= -1), the second clause would still be evaluated.
After my PR, the wasteful check doesn't exist.