k3s/pkg/scheduler/core
Kubernetes Submit Queue 0a2467d849
Merge pull request #63459 from resouer/fix-63427
Automatic merge from submit-queue (batch tested with PRs 63598, 63913, 63459, 63963, 60464). 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>.

Check nodeInfo before ecache predicate

**What this PR does / why we need it**:

There's chances during test when nodeInfo is nil which may cause ecache predicate fail with nil pointer.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #63427

**Special notes for your reviewer**:

Not sure how to reproduce the original issue yet. i.e. why and when `nodeInfo` will become nil in tests is not clear to me, that's why I label it as WIP.

cc @bsalamat who may have more inputs.

**Release note**:

```release-note
NONE
```
2018-05-19 06:49:19 -07:00
..
BUILD Update generated bazel 2018-05-11 14:25:23 +08:00
equivalence_cache.go Merge pull request #63459 from resouer/fix-63427 2018-05-19 06:49:19 -07:00
equivalence_cache_test.go Use simple cache instead of LRU 2018-05-11 14:25:17 +08:00
extender.go Add Ignorable flag to extender 2018-03-30 15:10:31 -07:00
extender_test.go Disable pod preemption by config 2018-04-12 21:11:51 -07:00
generic_scheduler.go Simplify logic in podFitsOnNode. 2018-04-27 15:55:10 -07:00
generic_scheduler_test.go Check for old NodeInfo when updating equiv. cache. 2018-04-25 10:18:40 -07:00
scheduling_queue.go Do not schedule pod to the node under PID pressure. 2018-04-26 10:07:42 +08:00
scheduling_queue_test.go Make the `Unschedulable Queue` interface private 2018-02-21 13:53:40 -08:00