mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	modify extends.Filter
Signed-off-by: PingWang <wang.ping5@zte.com.cn> Add docs Signed-off-by: PingWang <wang.ping5@zte.com.cn> add docs for ExtenderFilterResult.FailedNodes in types.go Signed-off-by: PingWang <wang.ping5@zte.com.cn> Modify the extender.Filter test. Signed-off-by: PingWang <wang.ping5@zte.com.cn> Update extender_test.go Signed-off-by: PingWang <wang.ping5@zte.com.cn> modify the comments Signed-off-by: PingWang <wang.ping5@zte.com.cn> gofmt -s scheduler_interface.go Signed-off-by: PingWang <wang.ping5@zte.com.cn> update the comments Signed-off-by: PingWang <wang.ping5@zte.com.cn>
This commit is contained in:
		| @@ -26,8 +26,9 @@ import ( | ||||
| // managed by Kubernetes. | ||||
| type SchedulerExtender interface { | ||||
| 	// Filter based on extender-implemented predicate functions. The filtered list is | ||||
| 	// expected to be a subset of the supplied list. | ||||
| 	Filter(pod *api.Pod, nodes []*api.Node) (filteredNodes []*api.Node, err error) | ||||
| 	// expected to be a subset of the supplied list. failedNodesMap optionally contains | ||||
| 	// the list of failed nodes and failure reasons. | ||||
| 	Filter(pod *api.Pod, nodes []*api.Node) (filteredNodes []*api.Node, failedNodesMap schedulerapi.FailedNodesMap, err error) | ||||
|  | ||||
| 	// Prioritize based on extender-implemented priority functions. The returned scores & weight | ||||
| 	// are used to compute the weighted score for an extender. The weighted scores are added to | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 PingWang
					PingWang