From 7254517c5cfda70153308b65310e45d813257073 Mon Sep 17 00:00:00 2001 From: silenceshell Date: Mon, 6 Jan 2020 11:18:51 +0800 Subject: [PATCH] rename ExtenderConfig to Extender --- pkg/scheduler/apis/extender/v1/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/scheduler/apis/extender/v1/types.go b/pkg/scheduler/apis/extender/v1/types.go index fdfce41c740..4557c8fd011 100644 --- a/pkg/scheduler/apis/extender/v1/types.go +++ b/pkg/scheduler/apis/extender/v1/types.go @@ -39,7 +39,7 @@ type ExtenderPreemptionArgs struct { // Pod being scheduled Pod *v1.Pod // Victims map generated by scheduler preemption phase - // Only set NodeNameToMetaVictims if ExtenderConfig.NodeCacheCapable == true. Otherwise, only set NodeNameToVictims. + // Only set NodeNameToMetaVictims if Extender.NodeCacheCapable == true. Otherwise, only set NodeNameToVictims. NodeNameToVictims map[string]*Victims NodeNameToMetaVictims map[string]*MetaVictims } @@ -72,10 +72,10 @@ type ExtenderArgs struct { // Pod being scheduled Pod *v1.Pod // List of candidate nodes where the pod can be scheduled; to be populated - // only if ExtenderConfig.NodeCacheCapable == false + // only if Extender.NodeCacheCapable == false Nodes *v1.NodeList // List of candidate node names where the pod can be scheduled; to be - // populated only if ExtenderConfig.NodeCacheCapable == true + // populated only if Extender.NodeCacheCapable == true NodeNames *[]string } @@ -85,10 +85,10 @@ type FailedNodesMap map[string]string // ExtenderFilterResult represents the results of a filter call to an extender type ExtenderFilterResult struct { // Filtered set of nodes where the pod can be scheduled; to be populated - // only if ExtenderConfig.NodeCacheCapable == false + // only if Extender.NodeCacheCapable == false Nodes *v1.NodeList // Filtered set of nodes where the pod can be scheduled; to be populated - // only if ExtenderConfig.NodeCacheCapable == true + // only if Extender.NodeCacheCapable == true NodeNames *[]string // Filtered out nodes where the pod can't be scheduled and the failure messages FailedNodes FailedNodesMap