k3s/pkg/scheduler/algorithm/priorities
Kubernetes Submit Queue d057795f3b
Merge pull request #64278 from silveryfu/master
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>.

Adding tests for ImageLocalityPriority

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

This PR adds tests for ImageLocalityPriority scheduling policy, as follow-ups of [#63842](https://github.com/kubernetes/kubernetes/issues/63842) and [#63345](https://github.com/kubernetes/kubernetes/issues/63345). It includes the unit test for ImageSizes function of NodeInfo in the scheduler cache.

**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 #

**Special notes for your reviewer**:

@resouer 

**Release note**:

```release-note
NONE
```
2018-05-26 12:46:57 -07:00
..
util -Remove TODO comment of GetNonzeroRequests function 2018-04-25 10:44:43 +08:00
BUILD Build files generated 2018-03-30 19:11:51 -04:00
balanced_resource_allocation.go Include volume count while doing balanced resource allocation 2018-03-30 19:11:45 -04:00
balanced_resource_allocation_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
image_locality.go Rename and add unit test for ImageSizes 2018-05-24 23:29:23 -07:00
image_locality_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
interpod_affinity.go Fix golint errors in `pkg/scheduler` based on golint check 2018-02-08 15:22:47 +08:00
interpod_affinity_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
least_requested.go Include volume count while doing balanced resource allocation 2018-03-30 19:11:45 -04:00
least_requested_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
metadata.go Fix golint errors in `pkg/scheduler` based on golint check 2018-02-08 15:22:47 +08:00
metadata_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
most_requested.go Include volume count while doing balanced resource allocation 2018-03-30 19:11:45 -04:00
most_requested_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
node_affinity.go simplify else 2018-05-25 00:38:54 -07:00
node_affinity_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
node_label.go Fix golint errors in `pkg/scheduler` based on golint check 2018-02-08 15:22:47 +08:00
node_label_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
node_prefer_avoid_pods.go Fix golint errors in `pkg/scheduler` based on golint check 2018-02-08 15:22:47 +08:00
node_prefer_avoid_pods_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
reduce.go
resource_allocation.go Include volume count while doing balanced resource allocation 2018-03-30 19:11:45 -04:00
resource_limits.go add SetMaxResource for Resource 2018-05-09 15:33:24 +08:00
resource_limits_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
selector_spreading.go Do not consider pods being deleted in the same namespace for spreading purposes 2018-03-22 13:51:31 -04:00
selector_spreading_test.go remove unused code of (pkg/scheduler) 2018-05-18 23:48:43 +08:00
taint_toleration.go
taint_toleration_test.go use subtest for table units 2018-05-10 07:12:20 -04:00
test_util.go