KEP-5471: Extend tolerations operators#134665
KEP-5471: Extend tolerations operators#134665k8s-ci-robot merged 17 commits intokubernetes:masterfrom
Conversation
|
/assign @sanposhiho @macsko @dom4ha |
f266a32 to
b30feec
Compare
e22e188 to
f7f3bd1
Compare
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
f7f3bd1 to
cc1217b
Compare
|
/milestone v1.35 |
Signed-off-by: Heba Elayoty <[email protected]>
Signed-off-by: Heba Elayoty <[email protected]>
Signed-off-by: Heba Elayoty <[email protected]>
Signed-off-by: Heba Elayoty <[email protected]>
Signed-off-by: Heba Elayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: Heba Elayoty <[email protected]> Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
Signed-off-by: helayoty <[email protected]>
|
/label tide/merge-method-squash |
|
/lgtm just rebase |
|
LGTM label has been added. DetailsGit tree hash: 1e752e44f48bad8174c7cba97cda6652b9465d01 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: helayoty, sanposhiho, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| // between toleration.value and taint.value. | ||
| // 5. If enableComparisonOperators is false and the toleration uses 'Lt' or 'Gt' | ||
| // operators, the toleration does not match (returns false). | ||
| func (t *Toleration) ToleratesTaint(logger klog.Logger, taint *Taint, enableComparisonOperators bool) bool { |
There was a problem hiding this comment.
Though this PR is merged, I'd like to raise a concern about the logger parameter.
As an API helper method in core/v1, ToleratesTaint() should return errors and let callers decide how to handle them, rather than logging internally. This approach pollutes the API layer with logging dependencies and prevents callers from handling validation errors appropriately.
In addition, many projects in the CNCF ecosystem consume Kubernetes APIs but may use different logging frameworks or error handling strategies.
@helayoty Great, thanks for your effort on this feature. I read the KEP, and it makes a lot of sense.
Also, cc @thockin, love to hear your thoughts.
What type of PR is this?
Extend tolerations operators by adding
GtandLt/kind feature
/sig scheduling
/stage alpha
What this PR does / why we need it:
Implementation Details
TaintTolerationComparisonOperatorsToleratesTaintToleratesTaintas false in the e2e.Which issue(s) this PR is related to:
Fixes #118669
KEP: kubernetes/enhancements#5471
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: