Skip to content

Commit 8256fa1

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#37785 from tanshanshan/fix-small
Automatic merge from submit-queue (batch tested with PRs 37692, 37785, 37647, 37941, 37856) fix scheduler extender example <!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md 2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md 3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes --> **What this PR does / why we need it**: Fix scheduler extender example , refer to [kubernetes/plugin/pkg/scheduler/api/types.go](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/api/types.go) Thanks! **Special notes for your reviewer**: **Release note**: <!-- Steps to write your release note: 1. Use the release-note-* labels to set the release note state (if you have access) 2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. --> ```release-note ```
2 parents 16a9c0b + 60cf598 commit 8256fa1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/scheduler-policy-config-with-extender.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
{"name" : "ServiceSpreadingPriority", "weight" : 1},
1515
{"name" : "EqualPriority", "weight" : 1}
1616
],
17-
"extender": {
18-
"url": "http://127.0.0.1:12346/scheduler",
17+
"extenders":[
18+
{
19+
"urlPrefix": "http://127.0.0.1:12346/scheduler",
1920
"apiVersion": "v1beta1",
2021
"filterVerb": "filter",
2122
"prioritizeVerb": "prioritize",
2223
"weight": 5,
2324
"enableHttps": false
24-
}
25+
}
26+
]
2527
}

0 commit comments

Comments
 (0)