deads2k
c30b2efc46
update replicaset lister
2016-10-05 15:20:27 -04:00
Kubernetes Submit Queue
7856e46f1b
Merge pull request #33967 from xiang90/fix_33772
...
Automatic merge from submit-queue
scheduler: initialize podsWithAffinity
Without initializing podsWithAffinity, scheduler panics when deleting
a pod from a node that has no pods with affinity ever scheduled to.
Fix #33772
2016-10-05 05:17:51 -07:00
Xiang Li
dc62007478
scheduler: cache.delete deletes the pod from node specified in the cached state
2016-10-05 03:33:53 -07:00
Kubernetes Submit Queue
96fde0fe8d
Merge pull request #33834 from wojtek-t/scheduler_map_reduce_6
...
Automatic merge from submit-queue
Migrate EqualPriority in scheduler to map-reduce-like framework
Ref #24246
2016-10-04 09:23:01 -07:00
Jedrzej Nowak
d2161c21d7
Fix typos and englishify plugin/pkg
2016-10-04 17:51:14 +02:00
Wojciech Tyczynski
f8632e2203
Migrate EqualPriority to MapReduce-like framework.
2016-10-04 12:19:08 +02:00
David Ashpole
0c8a664e50
addressed comments
2016-10-03 11:42:56 -07:00
David Ashpole
fed3f37eef
Split NodeDiskPressure into NodeInodePressure and NodeDiskPressure
2016-10-03 11:42:56 -07:00
Lucas Käldström
0bba65ca1a
Remove old references to contrib/mesos
2016-10-01 16:46:48 +03:00
Wojciech Tyczynski
daac9a1869
Remove unnecessary podLister from SelectorSpreading
2016-09-30 15:15:14 +02:00
Wojciech Tyczynski
6598c181f7
Support metadata producer with underlying data.
2016-09-28 09:11:18 +02:00
Wojciech Tyczynski
4ccb27202c
Migrate priority functions with non-trivial reduce function.
2016-09-27 11:27:38 +02:00
Kubernetes Submit Queue
8b2dfac042
Merge pull request #33489 from liggitt/log-error
...
Automatic merge from submit-queue
Log test error
We're seeing flakes in this unit test downstream at this point, logging the error would be helpful
2016-09-26 20:34:52 -07:00
Jordan Liggitt
1812fe70a3
Log test error
2016-09-26 11:21:38 -04:00
Wojciech Tyczynski
ff765ed43b
Compute priorities in parallel
2016-09-26 14:33:20 +02:00
deads2k
500959b70c
fix RC lister
2016-09-23 08:12:03 -04:00
Kubernetes Submit Queue
b2aed32578
Merge pull request #33269 from deads2k/client-15-svc-lister
...
Automatic merge from submit-queue
simplify svc lister
trying to track down what killed the e2e tests.
2016-09-23 03:10:57 -07:00
Daniel Smith
db3e549bd1
more usages of go2idl
2016-09-22 13:42:46 -07:00
deads2k
483af28944
fix up service lister
2016-09-22 09:12:37 -04:00
Antoine Pelisse
938872582e
Revert "simplify RC and SVC listers"
2016-09-21 15:49:38 -07:00
Kubernetes Submit Queue
2d9d84dc64
Merge pull request #32888 from deads2k/client-10-fixup-remaining-listers
...
Automatic merge from submit-queue
simplify RC and SVC listers
Make the RC and SVC listers use the common list functions that more closely match client APIs, are consistent with other listers, and avoid unnecessary copies.
2016-09-21 04:13:56 -07:00
Ivan Shvedunov
f758cb418d
Fix possible panic in PodAffinityChecker
2016-09-20 15:53:13 +03:00
deads2k
16fbb47189
fix up service lister
2016-09-20 08:24:33 -04:00
deads2k
185a7adf84
fix RC lister
2016-09-20 08:24:32 -04:00
Kubernetes Submit Queue
4b5c74eed8
Merge pull request #31859 from resouer/fix-nits
...
Automatic merge from submit-queue
Fix minor nits in test cases
Found a group of nits when doing #30844 , fixed them in a this PR since 30844 requires a long time to review.
2016-09-18 06:27:12 -07:00
Kubernetes Submit Queue
8c48469213
Merge pull request #32353 from smarterclayton/stable_sort
...
Automatic merge from submit-queue
Doc page for scheduler is not stable (for man pages)
Need to sort maps that are included in help output
2016-09-16 05:44:33 -07:00
Mike Danese
a765d59932
move informer and controller to pkg/client/cache
...
Signed-off-by: Mike Danese <mikedanese@google.com >
2016-09-15 12:50:08 -07:00
Kubernetes Submit Queue
8c83671789
Merge pull request #32643 from smarterclayton/scheduler_retry
...
Automatic merge from submit-queue
Exit scheduler retry loop correctly
The error was being eaten and shadowed, which means we would never exit
this loop. This might lead to a goroutine in the scheduler being used
forever without exiting at maximum backoff.
Switched to use the real client to make later refactors easier.
@wojtek-t this may lead to scheduler informer exhaustion - not that familiar with retries
2016-09-15 05:16:16 -07:00
Clayton Coleman
4d79030b8d
Exit scheduler retry loop correctly
...
The error was being eaten and shadowed, which means we would never exit
this loop. This might lead to a goroutine in the scheduler being used
forever without exiting at maximum backoff.
Switched to use the real client to make later refactors easier.
2016-09-14 00:34:14 -04:00
Wojciech Tyczynski
ea943d825e
Migrate a bunch of priority functions to map-reduce framework
2016-09-13 13:20:29 +02:00
Wojciech Tyczynski
c8c938c3e0
AvoidPriority using ControllerRef
2016-09-12 08:45:02 +02:00
Kubernetes Submit Queue
cfe53d14fd
Merge pull request #30733 from asalkeld/compat-test
...
Automatic merge from submit-queue
Update scheduler config file compatibility tests
**What this PR does / why we need it**:
Added missing compatibility tests for scheduler config file options.
**Which issue this PR fixes**
fixes #30099
**Special notes for your reviewer**:
I came up with the options based on the contents of default.go in each branch.
**Release note**:
```release-note
NONE
```
2016-09-10 03:48:49 -07:00
Clayton Coleman
adc3761bfc
Doc page for scheduler is not stable (for man pages)
...
Need to sort maps
2016-09-09 01:09:36 -04:00
Angus Salkeld
27f1f854ba
Update scheduler config file compatibility tests
...
Co-Authored-By: Jordan Liggitt <jliggitt@redhat.com >
2016-09-09 09:31:46 +10:00
Harry Zhang
608e7ce0d4
Fix minor nits in test cases
2016-09-01 05:21:17 -04:00
Wojciech Tyczynski
33c710adf0
MapReduce-like scheduler priority functions
2016-08-31 15:16:10 +02:00
Kubernetes Submit Queue
d12b3429fe
Merge pull request #30676 from m1093782566/improve-pod-log-output-format
...
Automatic merge from submit-queue
[Scheduler] Improve pod log output debuggability
Address issue is #30675
The result of my expirments shows that both `glog.Infof("%v", pod)` and `glog.Infof("%+v", pod)` can't output useful information of a pod, it can only output `kind:"" apiVersion:""`.
`%#v` can output the whole content of pod, but it seems too much!
So, my opinion is output pod info use the format of `%v` to print`pod.Namespace/pod.Name` instead of the pod **object** in both [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/scheduler.go#L96 ) and [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/scheduler.go#L100 ).
@wojtek-t
2016-08-25 04:05:24 -07:00
Wojciech Tyczynski
e9d5be628a
Don't validate selector that is already validated
2016-08-22 09:39:32 +02:00
Kubernetes Submit Queue
4e39800baa
Merge pull request #30992 from mwielgus/cluster-autoscaler-alg
...
Automatic merge from submit-queue
Cluster autoscaler friendly scheduling algorithm
cc: @davidopp
2016-08-20 18:49:24 -07:00
Kubernetes Submit Queue
248e508225
Merge pull request #30609 from m1093782566/update-comment-info
...
Automatic merge from submit-queue
update comment info for scheduler binding fails
Since the process logic for scheduler binding failed has changed, I think we should update the comment information to avoid make people confused :)
The related issue is #30611 .
@wojtek-t What do you think about it ?
Thanks!
2016-08-19 15:47:33 -07:00
Marcin Wielgus
2df92ff155
Cluster autoscaler friendly scheduling algorithm
2016-08-19 15:20:15 +02:00
Kubernetes Submit Queue
1f3a703df1
Merge pull request #30274 from mwielgus/best-fit
...
Automatic merge from submit-queue
ClusterAutoscaler-friendly scheduler priority function that promotes well-used nodes
It will help cluster autoscaler to put pods on nodes that are unlikely to be deleted soon due to low usage. Otherwise a pod may be frequently kicked from one node to another. A flag that enables it when CA is on will be added in a separate PR.
Fixes : #28842
2016-08-18 23:49:10 -07:00
Clayton Coleman
12a5eeea17
Introduce GroupVersioner for capturing desired target version
...
Convert single GV and lists of GVs into an interface that can handle
more complex scenarios (everything internal, nothing supported). Pass
the interface down into conversion.
2016-08-18 14:45:00 -04:00
Kubernetes Submit Queue
214c916045
Merge pull request #30585 from m1093782566/remotve-duplicated-assignment
...
Automatic merge from submit-queue
remove duplicated nodeinfo.pods assignment
There are duplicated assignments for nodeinfo.pods, one place is [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/schedulercache/node_info.go#L139 ) and the other one is [here](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/schedulercache/node_info.go#L147 ).
I think we can remove one.
The related issue is #30610
2016-08-18 01:29:20 -07:00
Marcin Wielgus
de2fea95ca
ClusterAutoscaler-friendly scheduler priority function that promotes well-used nodes.
2016-08-18 08:34:10 +02:00
m1093782566
40f5d64411
update comment info when scheduler bind fails
...
Change-Id: Idce89003fe408b713431d07a3300e3acd1af87a9
2016-08-16 20:23:26 +08:00
m1093782566
458f5bd7f2
improve pod log output format
...
Change-Id: I415dd97f14b507ebb8340eb853f935e1e90b7a53
2016-08-16 17:59:58 +08:00
Kubernetes Submit Queue
69419a145a
Merge pull request #29802 from jfrazelle/fix-go-vet-errors
...
Automatic merge from submit-queue
fix go vet errors
<!--
Checklist for submitting a Pull Request
Please remove this comment block before submitting.
1. Please read our [contributor guidelines](https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md ).
2. See our [developer guide](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md ).
3. If you want this PR to automatically close an issue when it is merged,
add `fixes #<issue number>` or `fixes #<issue number>, fixes #<issue number>`
to close multiple issues (see: https://github.com/blog/1506-closing-issues-via-pull-requests ).
4. Follow the instructions for [labeling and writing a release note for this PR](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes ) in the block below.
-->
```release-note
```
This fixes the `go vet` errors brought about by go 1.7 testing re (#28742 ).
The are all pretty trivial and mostly related to literal composites.
also related to #16086
2016-08-15 13:10:08 -07:00
m1093782566
8f607394ee
remove duplicated nodeinfo.pods assignment
...
Change-Id: I8b15624e1cf146ab1693938bbd6ab1c6be030724
2016-08-14 16:43:45 +08:00
Daniel Smith
f1fd638962
fix register.go files up + add test import
2016-08-11 17:06:54 -07:00