k3s/pkg/scheduler
Kubernetes Submit Queue b3115df40b
Merge pull request #58799 from lichuqiang/cleanup
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

remove unused func in FakeConfigurator of scheduler

**What this PR does / why we need it**:
Current scheduler `Configurator` interface looks like this:
```
type Configurator interface {
	GetPriorityFunctionConfigs(priorityKeys sets.String) ([]algorithm.PriorityConfig, error)
	GetPriorityMetadataProducer() (algorithm.PriorityMetadataProducer, error)
	GetPredicateMetadataProducer() (algorithm.PredicateMetadataProducer, error)
	GetPredicates(predicateKeys sets.String) (map[string]algorithm.FitPredicate, error)
	GetHardPodAffinitySymmetricWeight() int32
	GetSchedulerName() string
	MakeDefaultErrorFunc(backoff *util.PodBackoff, podQueue core.SchedulingQueue) func(pod *v1.Pod, err error)

	// Needs to be exposed for things like integration tests where we want to make fake nodes.
	GetNodeLister() corelisters.NodeLister
	GetClient() clientset.Interface
	GetScheduledPodLister() corelisters.PodLister

	Create() (*Config, error)
	CreateFromProvider(providerName string) (*Config, error)
	CreateFromConfig(policy schedulerapi.Policy) (*Config, error)
	CreateFromKeys(predicateKeys, priorityKeys sets.String, extenders []algorithm.SchedulerExtender) (*Config, error)
}
```
Funcs `ResponsibleForPod` and  `Run` once existed have been removed, so the funcs in `FakeConfigurator` should be removed accordingly.

**Special notes for your reviewer**:
/kind cleanup
/sig scheduling

**Release note**:

```release-note
NONE
```
2018-01-30 22:08:45 -08:00
..
algorithm Revert "Change equivalence class hashing function" 2018-01-26 18:13:15 -08:00
algorithmprovider Revert "Change equivalence class hashing function" 2018-01-26 18:13:15 -08:00
api -Add scheduler optimization options, short circuit all predicates if one predicate fails 2018-01-13 18:18:55 +08:00
core Revert "Change equivalence class hashing function" 2018-01-26 18:13:15 -08:00
factory Revert "Change equivalence class hashing function" 2018-01-26 18:13:15 -08:00
metrics Added metrics for preemption victims, pods preempted and duration of preemption 2018-01-13 12:27:11 +05:30
schedulercache fix the wrong err print of assumepod 2018-01-22 10:50:59 +08:00
testing Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
util Refactor HostIP predicate algorithm 2018-01-08 17:10:21 -08:00
volumebinder Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
BUILD Fix scheduler refs in BUILD files. 2018-01-05 15:05:01 -08:00
OWNERS
scheduler.go Rename func name according TODO 2018-01-15 00:08:59 -05:00
scheduler_test.go Rename func name according TODO 2018-01-15 00:08:59 -05:00
testutil.go remove unused func in FakeConfigurator of scheduler 2018-01-25 16:08:13 +08:00