selector: make sure value of GT and LT is integer#28474
selector: make sure value of GT and LT is integer#28474k8s-github-robot merged 1 commit intokubernetes:masterfrom
Conversation
|
@xiang90 @kubernetes/sig-scheduling @timothysc |
|
GCE e2e build/test passed for commit eb981a8770852cd7d49847b4c40da1344d46537a. |
|
There's no special motivation to use float instead of int here (my mistake), to make it integer would be a better choice and this is also what the API defines. |
|
The test |
|
GCE e2e build/test passed for commit 09b02a5e64aec73b3d9090a7c71e3eaa98dee6ed. |
|
GCE e2e build/test passed for commit 7127915. |
|
LGTM, thanks. |
|
@davidopp |
|
LGTM Thanks |
|
GCE e2e build/test failed for commit 7127915. Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake. |
|
GCE e2e build/test passed for commit 7127915. |
|
@k8s-bot test this please, issue #IGNORE (probably broke this while restarting Jenkins) |
|
Build finished. 3357 tests run, 14 skipped, 0 failed. |
|
Build finished. 330 tests run, 148 skipped, 0 failed. |
|
GCE e2e build/test passed for commit 7127915. |
|
GCE e2e build/test passed for commit 7127915. |
|
GCE e2e build/test passed for commit 7127915. |
|
GCE e2e build/test passed for commit 7127915. |
|
Automatic merge from submit-queue |
GT and LT in selector has been introduced in Node Affinity feature: #19758, #18261
According to the API:
But the implementation has parsed it as float64:
kubernetes/pkg/labels/selector.go
Line 183 in ef0c9f0
Modeling integer as float is dangerous. We don't even have fixed precision guarantee when doing comparison.
This PR is to get rid of this pre-optimization and convert integer to int64.