Added back multiple extenders

This commit is contained in:
Ravi Gadde 2017-06-16 16:18:30 -07:00
parent 67add52f8a
commit a459adaed5
1 changed files with 3 additions and 2 deletions

View File

@ -45,7 +45,7 @@ type ExtenderConfig struct {
// TLSConfig specifies the transport layer security config // TLSConfig specifies the transport layer security config
TLSConfig *client.TLSClientConfig `json:"tlsConfig,omitempty"` TLSConfig *client.TLSClientConfig `json:"tlsConfig,omitempty"`
// HTTPTimeout specifies the timeout duration for a call to the extender. Filter timeout fails the scheduling of the pod. Prioritize // HTTPTimeout specifies the timeout duration for a call to the extender. Filter timeout fails the scheduling of the pod. Prioritize
// timeout is ignored, k8s priorities are used to select the node. // timeout is ignored, k8s/other extenders priorities are used to select the node.
HTTPTimeout time.Duration `json:"httpTimeout,omitempty"` HTTPTimeout time.Duration `json:"httpTimeout,omitempty"`
} }
``` ```
@ -71,12 +71,13 @@ A sample scheduler policy file with extender configuration:
"weight": 1 "weight": 1
} }
], ],
"extender": "extenders": [
{ {
"urlPrefix": "http://127.0.0.1:12345/api/scheduler", "urlPrefix": "http://127.0.0.1:12345/api/scheduler",
"filterVerb": "filter", "filterVerb": "filter",
"enableHttps": false "enableHttps": false
} }
]
} }
``` ```