mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-03-13 06:02:25 -04:00
Automatic merge from submit-queue scheduler: fix validation test Signed-off-by: sakeven <jc5930@sina.cn> **What this PR does / why we need it**: Without setting `Weight`, `ValidatePolicy` will report ``` Priority for extender http://127.0.0.1:8081/extender should have a positive weight applied to it ``` **Besides**, it seems it's not a good way to test ValidatePolicy by```if ValidatePolicy(extenderPolicy) == nil```, because we can't determine specific reason which causes error. **Special notes for your reviewer**: **Release note**: ``` NONE ``` |
||
|---|---|---|
| .. | ||
| algorithm | ||
| algorithmprovider | ||
| api | ||
| core | ||
| factory | ||
| metrics | ||
| schedulercache | ||
| testing | ||
| util | ||
| BUILD | ||
| OWNERS | ||
| scheduler.go | ||
| scheduler_test.go | ||
| testutil.go | ||