Xing Zhou
46c302b4c2
Used goroutine to launch node controller's internalPodInformer.
...
Node controller's internalPodInformer will block main thread
if it is not started as a go routine. This patch fixed this
by runing internalPodInformer as a go routine.
2016-09-06 15:39:13 +08:00
Wojciech Tyczynski
b69d516763
NodeController listing nodes from apiserver cache
2016-09-05 16:52:57 +02:00
gmarek
bac603afd6
Sleep between NodeStatus update retries
2016-09-05 12:29:28 +02:00
gmarek
ea2d19f5d7
Remove unused argument to NodeController.Run
2016-08-30 14:24:56 +02:00
Kubernetes Submit Queue
6a1c63fd37
Merge pull request #30857 from better0332/master
...
Automatic merge from submit-queue
fix FakeNodeHandler List()
2016-08-22 17:40:34 -07:00
Kubernetes Submit Queue
9ebaf29295
Merge pull request #30624 from derekwaynecarr/node-controller-fix
...
Automatic merge from submit-queue
Node controller deletePod return true if there are pods pending deletion
Fixes https://github.com/kubernetes/kubernetes/issues/30536
If a node had a single pod in terminating state, and that node no longer reported healthy, the pod was never deleted by the node controller because it believed there were no pods remaining.
@smarterclayton @ncdc
2016-08-19 14:33:54 -07:00
gmarek
5d8cb17efa
Add cluster health metrics to NodeController
2016-08-18 15:11:10 +02:00
better0332
2f837e7096
fix FakeNodeHandler List()
2016-08-18 17:30:26 +08:00
Kubernetes Submit Queue
f9190ed61a
Merge pull request #30138 from gmarek/flags
...
Automatic merge from submit-queue
Expose flags for new NodeEviction logic in NodeController
Fix #28832
Last PR from the NodeController NodeEviction logic series.
cc @davidopp @lavalamp @mml
2016-08-18 00:41:28 -07:00
bprashanth
15c9826061
Nodecontroller doesn't flip readiness on pods if kubeletVersion < 1.2.0
2016-08-17 15:33:35 -07:00
gmarek
4cf698ef04
Expose flags for new NodeEviction logic in NodeController
2016-08-17 10:43:24 +02:00
derekwaynecarr
14a2b261a8
Node controller deletePod return true if there are pods pending deletion
2016-08-16 13:05:38 -04:00
AdoHe
b2ab4c6d9b
fix node controller event uid issue
2016-08-14 09:41:20 +08:00
Kubernetes Submit Queue
2537f66f0e
Merge pull request #29230 from luxas/goimport
...
Automatic merge from submit-queue
Run goimport for the whole repo
While removing GOMAXPROC and running goimports, I noticed quite a lot of other files also needed a goimport format. Didn't commit `*.generated.go`, `*.deepcopy.go` or files in `vendor`
This is more for testing if it builds.
The only strange thing here is the gopkg.in/gcfg.v1 => github.com/scalingdata/gcfg replace.
cc @jfrazelle @thockin
2016-08-05 16:22:01 -07:00
Dominika Hodovska
816f6d32ca
Collapse duplicate informer creation paths
2016-08-04 09:02:13 +02:00
gmarek
66224ce0bd
Change eviction logic in NodeController and make it Zone-aware
2016-08-02 14:21:52 +02:00
Lucas Käldström
c88a07ce1a
Run goimports
2016-08-02 15:12:39 +03:00
k8s-merge-robot
59836d6dbd
Merge pull request #24841 from sjenning/shared-informer
...
Automatic merge from submit-queue
update node controller to use shared pod informer
continuing work from #24470 and #23575
2016-08-02 03:45:01 -07:00
Matt T. Proud
76aab29ede
pkg/controller/node/nodecontroller: simplify mutex
...
Similar to #29598 , we can rely on the zero-value construction behavior
to embed `sync.Mutex` into parent structs.
2016-07-26 07:06:16 +02:00
Seth Jennings
db6026c82a
node controller use shared pod informer
2016-07-20 15:26:19 -05:00
Seth Jennings
6d77f53af4
refactor maybeDeleteTerminatingPod
2016-07-20 15:26:19 -05:00
k8s-merge-robot
8c6336b12a
Merge pull request #29101 from gmarek/allocator2
...
Automatic merge from submit-queue
Retry assigning CIDRs
Fix #28879 , ref #29064
cc @bgrant0607 @bprashanth @alex-mohr
2016-07-19 04:35:23 -07:00
gmarek
56006fac43
Retry assigning CIDRs
2016-07-18 17:06:04 +02:00
k8s-merge-robot
fa174bcdaf
Merge pull request #29042 from dims/fixup-imports
...
Automatic merge from submit-queue
Use Go canonical import paths
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-18 07:23:38 -07:00
gmarek
579912d9d2
Re-check assigned CIDR during update
2016-07-18 10:57:58 +02:00
Prashanth Balasubramanian
2f9516db30
List all nodes and occupy cidr map before starting allocations
2016-07-16 13:54:01 -07:00
Davanum Srinivas
2b0ed014b7
Use Go canonical import paths
...
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-16 13:48:21 -04:00
gmarek
f6b1c316e9
Allow switching rate limiter inside RateLimitedQueue
2016-07-14 15:38:14 +02:00
k8s-merge-robot
6b6141f812
Merge pull request #28820 from caesarxuchao/patch-subresource
...
Automatic merge from submit-queue
[client-gen] Allow passing subresources in Patch method
Expand the Patch() method from:
```
Patch(name string, pt api.PatchType, data []byte)
```
to
```
Patch(name string, pt api.PatchType, data []byte, subresources ...string)
```
Continue on #27293 . Fixes #26580 .
cc @Random-Liu @lavalamp
2016-07-13 16:09:01 -07:00
gmarek
5677a9845e
Split NodeController rate limiters between zones
2016-07-13 14:09:19 +02:00
Chao Xu
dc2e12d2f8
manual changes to patch subresource
2016-07-12 11:09:27 -07:00
gmarek
fd600ab65c
Add hooks for cluster health detection
2016-07-12 15:10:58 +02:00
gmarek
7524da877e
Reduce tightness of coupling in NodeController
2016-07-12 11:00:41 +02:00
gmarek
7f5f9d3a6f
Move CIDR allocation logic away from nodecontroller.go
2016-07-12 09:40:43 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Oleg Shaldybin
a58b4cf59d
Don't panic in NodeController if pod update fails
...
Previously it was trying to use a nil pod variable if error was returned
from the pod update call.
2016-06-28 11:54:13 -07:00
Oleg Shaldybin
3b15d5be19
Use correct namespace in unit tests that use fake clientset
...
Fake clientset no longer needs to be prepopulated with records: keeping
them in leads to the name conflict on creates. Also, since fake
clientset now respects namespaces, we need to correctly populate them.
2016-06-28 11:26:34 -07:00
k8s-merge-robot
93037844c1
Merge pull request #27293 from caesarxuchao/add-patch-to-clientset
...
Automatic merge from submit-queue
[client-gen]Add Patch to clientset
* add the Patch() method to the clientset.
* I have to rename the existing Patch() method of `Event` to PatchWithEventNamespace() to avoid overriding.
* some minor changes to the fake Patch action.
cc @Random-Liu since he asked for the method
@kubernetes/sig-api-machinery
ref #26580
```release-note
Add the Patch method to the generated clientset.
```
2016-06-25 19:15:11 -07:00
saadali
926bb4cca0
Add patch status to Node internalclientset
2016-06-19 23:54:02 -07:00
goltermann
218645b346
Fix several spelling errors in comments.
2016-06-17 10:41:18 -07:00
Chao Xu
a29f6aa8ae
add Patch to clientsets
2016-06-17 10:30:58 -07:00
gmarek
7cac170214
AllocateOrOccupyCIDR returs quickly
2016-05-31 09:11:42 +02:00
k8s-merge-robot
577cdf937d
Merge pull request #26415 from wojtek-t/network_not_ready
...
Automatic merge from submit-queue
Add a NodeCondition "NetworkUnavaiable" to prevent scheduling onto a node until the routes have been created
This is new version of #26267 (based on top of that one).
The new workflow is:
- we have an "NetworkNotReady" condition
- Kubelet when it creates a node, it sets it to "true"
- RouteController will set it to "false" when the route is created
- Scheduler is scheduling only on nodes that doesn't have "NetworkNotReady ==true" condition
@gmarek @bgrant0607 @zmerlynn @cjcullen @derekwaynecarr @danwinship @dcbw @lavalamp @vishh
2016-05-29 03:06:59 -07:00
Alex Robinson
d577550dd0
Merge pull request #26054 from gmarek/flags
...
Make service-range flag in controller-manager optional
2016-05-27 14:26:15 -07:00
gmarek
7bdf480340
Node is NotReady until the Route is created
2016-05-27 19:29:51 +02:00
Alex Robinson
7522389d8d
Merge pull request #26207 from zmerlynn/fix-unneeded-updated
...
nodecontroller: Fix log message on successful update
2016-05-27 09:56:28 -07:00
Zach Loafman
cb69960742
nodecontroller: Fix log message on successful update
2016-05-25 14:44:15 -07:00
k8s-merge-robot
4e8e4a574c
Merge pull request #25636 from zhouhaibing089/delnode-fix
...
Automatic merge from submit-queue
use monotonic now in TestDelNode
Fixes https://github.com/kubernetes/kubernetes/issues/24971 .
Briefly, the rate_limited_queue uses a `container/heap` to store values, and use this data structure to ensure we can always fetch the value with the minimum `processAt`. However, in some extreme condition, the continuous call to `time.Now()` would get the same value, which causes some unpredictable order in the queue, this fix uses a monotonic `now()` to avoid that.
@smarterclayton please take a look.
2016-05-25 13:33:31 -07:00
gmarek
08385b2c5f
Make service-range flag in controller-manager optional
2016-05-23 09:37:53 +02:00
gmarek
1d89d2f2d2
Add few log lines to NodeController
2016-05-23 08:49:11 +02:00
mqliang
17d5a302bb
make podcidr mask size configurable
2016-05-20 20:44:40 +08:00
mqliang
cf7a3475f3
Don't allow node controller to allocate into service CIDR range
2016-05-20 20:44:40 +08:00
mqliang
69b8453fa0
cidr allocator
2016-05-20 20:44:40 +08:00
gmarek
6d27009db1
NodeController doesn't evict Pods if no Nodes are Ready
2016-05-17 23:03:21 +02:00
zhouhaibing089
af3e2357ea
use monotonic now in TestDelNode
2016-05-15 10:58:29 +08:00
mqliang
c10f43a2e5
implement AddIndexers for SharedIndexInformer
2016-05-06 21:23:18 +08:00
mqliang
9011207f18
add namespace index to rc and pod
2016-05-06 17:12:36 +08:00
k8s-merge-robot
4a0e0826e5
Merge pull request #24220 from gmarek/metrics
...
Automatic merge from submit-queue
Generated clients can return their RESTClients, RESTClient can return its RateLimiter
cc @lavalamp @krousey @wojtek-t @smarterclayton @timothysc
Ref. #22421
2016-04-27 19:25:38 -07:00
gmarek
3171aac57c
Generated clients can return their RESTClients, RESTClient can return its RateLimiter
2016-04-27 22:15:10 +02:00
Clayton Coleman
08f136b8d9
RateLimitedQueue TestTryOrdering could fail under load
...
Remove the possibility of contention in the test by providing a
synthetic Now() function.
2016-04-24 20:03:04 -04:00
k8s-merge-robot
72e51dacfe
Merge pull request #24034 from AdoHe/log_spam
...
Automatic merge from submit-queue
remove log spam from nodecontroller
@thockin @quinton-hoole ptal.
2016-04-21 12:11:05 -07:00
Chao Xu
8537095415
use fully qualified resource in fake clients actions
2016-04-20 19:44:40 -07:00
AdoHe
e52f71f78d
remove log spam from nodecontroller
2016-04-10 22:51:29 -04:00
k8s-merge-robot
7d7ca5ab72
Merge pull request #23608 from caesarxuchao/mv-typed-clients
...
Automatic merge from submit-queue
Move typed clients into clientset folder
Move typed clients from `pkg/client/typed/` to `pkg/client/clientset_generated/${clientset_name}/typed`.
The first commit changes the client-gen, the last commit updates the doc, other commits are just moving things around.
@lavalamp @krousey
2016-04-02 19:31:40 -07:00
Chao Xu
49559a3332
Generate the typed clients under the clientset folder
2016-03-31 15:28:45 -07:00
André Cruz
34a273f1eb
Fixed typo.
2016-03-29 16:10:11 +01:00
k8s-merge-robot
e44ad7a083
Merge pull request #22735 from resouer/throttle-dev
...
Auto commit by PR queue bot
2016-03-26 06:44:48 -07:00
goltermann
32d569d6c7
Fixing all the "composite literal uses unkeyed fields" Vet errors.
2016-03-25 15:25:09 -07:00
harry
8472cfa214
Refactor throttle into util pkg
...
Fix missing throttle.go
2016-03-25 08:32:23 +08:00
harry
b0900bf0d4
Refactor diff into sub pkg
2016-03-21 20:21:39 +08:00
Mike Danese
e0431d8409
Revert "Revert "continuously delete pods on nodes that don't exist""
...
This reverts commit da0a72f2c2
.
2016-03-08 11:00:35 -08:00
Marek Grabowski
da0a72f2c2
Revert "continuously delete pods on nodes that don't exist"
2016-03-08 09:38:53 +01:00
Mike Danese
c404e7c6d1
continuously delete pods on nodes that don't exist
2016-03-07 16:01:33 -08:00
k8s-merge-robot
dc46ae031d
Merge pull request #22336 from cjcullen/evict
...
Auto commit by PR queue bot
2016-03-07 08:42:40 -08:00
CJ Cullen
e7fc608df7
Immediately evict pods and delete node when cloud says node is gone.
2016-03-07 06:07:51 -08:00
Chao Xu
828fe5df2f
remove V(2)
2016-03-03 14:54:33 -08:00
k8s-merge-robot
ec77d0841d
Merge pull request #22376 from caesarxuchao/add-log-nodecontroller
...
Auto commit by PR queue bot
2016-03-02 13:36:34 -08:00
Chao Xu
f8dd7fe1de
log the succussful forceful deletion
2016-03-02 11:18:55 -08:00
CJ Cullen
506df24c1f
Revert "Evict pods w/o rate-limit when cloud says node is gone."
2016-03-01 11:04:18 -08:00
k8s-merge-robot
fec00b535f
Merge pull request #21187 from cjcullen/evict
...
Auto commit by PR queue bot
2016-03-01 10:45:22 -08:00
Kris
e664ef922f
Move restclient to its own package
2016-02-29 12:05:13 -08:00
CJ Cullen
3a8c7a7074
Evict pods w/o rate-limit when cloud says node is gone.
2016-02-29 10:33:50 -08:00
Mike Danese
a50bc3da10
revert deletePods changes in #22100
2016-02-27 08:40:50 -08:00
Mike Danese
c1a7e280a3
fix pod eviction for gracefully terminationg pods
2016-02-26 17:34:15 -08:00
Fabio Yeon
7d0684e9c4
Merge pull request #21628 from smarterclayton/suppress_debug_logging
...
Reduce volume of logs generated at v(3)
2016-02-26 15:47:31 -08:00
gmarek
e99ad585ce
Decrease verbosity in NodeController
2016-02-23 17:03:38 +01:00
Clayton Coleman
ae2f6a833a
Reduce volume of logs generated at v(3)
...
Node controller is generating a huge amount of logging at v(3) that is
more appropriate for v(5). Split the log into two levels and ensure it
also ends up on one line (so grep works).
The pod manager generates a v(4) pod output on sync that always contains
a newline - since the size of the pod is so excessive in output, kick it
to v(5) for deep debugging (we're pretty happy with this loop).
2016-02-20 15:29:05 -05:00
k8s-merge-robot
eb45154996
Merge pull request #21348 from caesarxuchao/generate-fake-for-1-2
...
Auto commit by PR queue bot
2016-02-18 23:02:05 -08:00
Andy Goldstein
49fb450a36
Fix type for DaemonSet informer
2016-02-18 14:54:39 -05:00
k8s-merge-robot
5acdb92126
Merge pull request #21177 from laushinka/spelling-fixes
...
Auto commit by PR queue bot
2016-02-18 10:29:49 -08:00
gmarek
0d7f3bca0a
Increase logging verbosity to help debugging #21458
2016-02-18 11:25:38 +01:00
Chao Xu
ad46715f51
generate fake client for release_1_2
2016-02-17 16:10:02 -08:00
laushinka
7ef585be22
Spelling fixes inspired by github.com/client9/misspell
2016-02-18 06:58:05 +07:00
Chao Xu
97aecd002a
remove underscore in imported pkg names
2016-02-16 10:54:51 -08:00
CJ Cullen
52b16129dc
Re-GET nodes during CIDR allocation (to avoid cascading bad resource version).
2016-02-12 13:08:54 -08:00
gmarek
6b2507485f
Add FakeNeverRateLimitter
2016-02-08 11:06:25 +01:00
Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
Mike Danese
b1743a6887
this is a manual reversion of #20702
...
I can't revert with github which says "Sorry, this pull request couldn’t be
reverted automatically. It may have already been reverted, or the content may
have changed since it was merged."
Reverts commit: 0c191e787b
2016-02-05 16:34:02 -08:00
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00
gmarek
0c191e787b
Split controller flags between controllers
2016-02-05 12:17:51 +01:00
Daniel Smith
d84ac764a9
Merge pull request #20492 from erictune/labselunver
...
Move extensions.LabelSelector to unversioned
2016-02-04 23:17:40 -08:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -08:00
Eric Tune
6133cb1f21
Move extensions.LabelSelector to unversioned.
...
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions
This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet)
are moved out of extensions to new api groups.
Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/
Also its test.
Also LabelSelectorOp* constants.
Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and
ValidateLabelSelector move to pkg/api/unversioned
The related type in pkg/apis/extensions/v1beta1/ is staying there. I might move
it in another PR if neccessary.
2016-02-04 13:46:34 -08:00
Chao Xu
f9f5736b01
grep sed
2016-02-03 13:06:07 -08:00
Chao Xu
fe7887f1ec
replace the client with clientset in controllers
2016-02-02 20:28:45 -08:00
harry
1032067ff9
Replace runtime reference by pkg
2016-02-01 21:06:44 +08:00
Matt Liggett
0ba1b49b42
When a node becomes unreachable, do not evict DaemonSet-managed pods.
...
Part of the graduation requirement for DaemonSet spelled out in #15310 .
2016-01-28 11:08:52 -08:00
David Oppenheimer
85f88b8645
Run gofmt.
2016-01-25 23:25:38 -08:00
David Oppenheimer
2a6da5871a
Revert #19580 and #17754 . Fixes #20048 .
2016-01-25 23:19:22 -08:00
Alex Mohr
94b2490eba
Merge pull request #19580 from WeixuZhuang/node
...
resolve the bug when cluster CIDR is not /8
2016-01-21 10:34:19 -08:00
Minhan Xia
01829432db
update pod status once node becomes NotReady
2016-01-14 17:41:36 -08:00
Weixu Zhuang
2af68d25b8
resolve the bug when cluster CIDR is not /8
...
We will have the rigth formula to generate correct maxCIDRs now.
Previous code assume cluster CIDR is /8 which may not be true.
Now it generates maxCIDR based on the info of cluster IP.
2016-01-13 11:55:19 -08:00
Weixu Zhuang
3928bd6e76
Fix TODO in pkg/controller/nodecontroller.go line 472
...
The code now calculates and find out the CIDRs for every node in any sync period.
I will fix this TODO by maintaining a set for available CIDRs left. Firstly, I will
insert 256 CIDRs into the available set. Once someone get one CIDR, remove this CIDR
from the available set. If one node get deleted, we will reinsert the CIDR associates
with this node back to available CIDR. Once there are nothing left in available CIDR set,
generate another 256 CIDRs and insert them into the available set. As a result, we do not
need to generate CIDRs in every monitor process and we only need to assign CIDR to node
which does not have it.
This commit also fix the error that CIDR may overflow when we use the function
generateCIDRs. There will be no more ip overflowing, all assigan CIDR will be valid
2015-12-28 11:15:38 -08:00
deads2k
9fda7f1812
update StatusDetails to handle Groups
2015-12-17 09:14:12 -05:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Wojciech Tyczynski
b0fcb5adef
Pass ListOptions to List in ListWatch.
2015-12-07 11:53:53 +01:00
Mike Danese
f784be33ac
actually validate semver in node controller rather than prefix checking
2015-12-03 14:49:44 -08:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +01:00
k8s-merge-robot
8a8639d7af
Merge pull request #17863 from wojtek-t/only_list_options_in_watch
...
Auto commit by PR queue bot
2015-12-02 06:28:28 -08:00
Wojciech Tyczynski
8343c8ce6c
Pass ListOptions to List() methods.
2015-12-01 15:00:36 +01:00
Wojciech Tyczynski
d2dfc912e6
Simplify Watch() signature in clients.
2015-12-01 14:19:26 +01:00
k8s-merge-robot
4eb010b1f7
Merge pull request #17694 from hongchaodeng/ratelimit
...
Auto commit by PR queue bot
2015-11-26 13:12:26 -08:00
k8s-merge-robot
3bd23b185b
Merge pull request #17730 from wojtek-t/use_unversioned_list_options_in_client
...
Auto commit by PR queue bot
2015-11-25 09:10:19 -08:00
Wojciech Tyczynski
b6ef62af24
Use unversioned.ListOptions in clients.
2015-11-24 16:52:09 +01:00
Avesh Agarwal
3d5207fd73
This commit adds type information to events.
...
This addresses issue #15624 .
2015-11-24 09:59:54 -05:00
Hongchao Deng
13d152a873
RateLimiter: change CanAccept() to TryAccept()
2015-11-23 16:42:53 -08:00
combk8s
9bad6b65ec
Update nodecontroller.go
2015-11-18 19:58:53 +08:00
combk8s
50ce7ff1f2
Update nodecontroller.go
2015-11-10 20:27:33 +08:00
Madhusudan.C.S
ce257b5a0e
Use node out of disk condition in the scheduler while scheduling pods.
...
Set the out of disk node condition to unknown in the node controller if
the kubelet does not report its node condition in a long time. Update
node controller unit tests.
Implement a node condition predicate function that checks if a given
node satisfies the conditions defined by the predicate and if it
does, use that node for scheduling pods. The predicate function takes
both NodeReady and NodeOutOfDisk into consideration to determine if a
node is fit for scheduling pods.
The predicate is then passed to the node lister in the scheduler factory
so that the node lister can run the predicate function on the nodes when
schedling pods thereby omitting nodes that does not satisfy the
predicate.
Also update listers test.
2015-10-28 14:29:46 -07:00
Wojciech Tyczynski
d47e21f19f
Reuse TCP connections in Reflector between resync periods.
2015-10-26 19:35:25 +01:00
Wojciech Tyczynski
f4d75e0a0a
Support timeout in watch requests
2015-10-24 13:12:49 +02:00
Saad Ali
f960b05fe1
Merge pull request #15930 from mikedanese/nc
...
make nodecontroller delete terminating pods on 1.0 nodes
2015-10-22 12:38:14 -07:00
Mike Danese
836b68368b
make nodecontroller delete terminating pods on 1.0 nodes
2015-10-21 13:07:03 -07:00
feihujiang
a456b4c424
Remove useless codes about Minion kind
2015-10-19 19:29:45 +08:00
eulerzgy
4ed5f9d240
adjust package name for pkg/controller directory
2015-10-12 09:51:27 +08:00
hzliangmingqiang
4b79572f8e
eliminate misleading code
2015-10-06 09:13:10 +08:00
gmarek
a3723e2045
Separate deletion and termination evictors in NodeController, and fix rate_limited_queue.go
2015-09-30 09:42:01 +02:00
Brian Grant
f62432212a
Merge pull request #14351 from zhengguoyong/del-unused-code
...
del the unused code
2015-09-25 13:16:06 -07:00
eulerzgy
91044f3bf2
del the unused code
2015-09-22 19:07:06 +08:00
Mike Danese
87cacda8a7
delete a bunch of dead code in pkg/controller
2015-09-21 16:38:43 -07:00
Daniel Martí
586cb9126a
Move pkg/util.Time to pkg/api/unversioned.Time
...
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
derekwaynecarr
1acc203b36
Node controller produces events with invalid names
2015-09-17 09:59:48 -04:00
k8s-merge-robot
75bce0ed8d
Merge pull request #14000 from mikedanese/nc_spam
...
Auto commit by PR queue bot
2015-09-16 04:45:40 -07:00
Mike Danese
c24ef49c90
only log when we are actually cancelling an eviction in the node controller
2015-09-15 14:45:56 -07:00
k8s-merge-robot
f03a267089
Merge pull request #13895 from jhadvig/typos_fix
...
Auto commit by PR queue bot
2015-09-15 14:29:06 -07:00
jiangyaoguo
079f1e7015
Fix reason reporting in controller
2015-09-13 11:49:14 +08:00
jhadvig
7582e90d01
Minor typos fix
2015-09-12 21:16:22 +02:00
Daniel Smith
b225c1d47a
Run gofmt (separate commit for easy rebases)
2015-09-10 17:17:59 -07:00
Daniel Smith
15b30b8b09
Move version agnostic parts of client
...
pkg/client/unversioned/cache -> pkg/client/cache
pkg/client/unversioned/record -> pkg/client/record
2015-09-10 17:17:59 -07:00
tummychow
78ce5da988
Move util.StringSet into its own package
...
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
Wojciech Tyczynski
cd1ac360de
Rename "minion" to "node" in few places.
2015-09-09 16:18:23 +02:00
gmarek
98b954c74c
Add a mutex to assure atomicity of reat_limited queue operations and remove 'leaky' version of it
2015-09-07 15:04:59 +02:00
Clayton Coleman
940cc2837c
Review comments
2015-08-25 14:18:07 -03:00
Clayton Coleman
8a62f1828d
Evict terminating pods
2015-08-25 14:17:39 -03:00
caogaojin
60cb4406e9
Cleanup deprecated Forever function
...
Since util.Forever function has been deprecated, we should cleanup these
pieces of code.
2015-08-24 10:31:59 +08:00
Clayton Coleman
c1a40d803c
Node controller did not handle an error
...
This means if List() fails nodes are considered deleted (which is bad)
2015-08-19 12:54:41 -04:00
Robert Bailey
08e6a43c1d
Revert "Merge pull request #9165 from smarterclayton/graceful"
...
This reverts commit 4f856b595d
, reversing
changes made to d78525a83b
.
Conflicts:
pkg/kubelet/status_manager.go
2015-08-18 17:34:49 -07:00
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Clayton Coleman
edb108802d
Handle gracefully terminated pods in node controller
...
Eviction should retry longer and wait for completion of the pod.
2015-08-18 09:08:45 -04:00
jiangyaoguo
5d3522dc7a
Keep event reason consistant in scheduler and controller
2015-08-13 11:33:32 +08:00
Piotr Szczesniak
1df0267f4a
Merge pull request #12551 from eparis/underscore-to-dash
...
Update code and docs to use - in flag names instead of _
2015-08-12 07:16:31 +02:00
CJ Cullen
64e5e1a2dd
Merge pull request #12427 from krousey/vetclean
...
Fix go vet errors
2015-08-11 15:14:00 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Eric Paris
5aa495cdad
Update code to use - in flag names instead of _
2015-08-11 16:31:52 -04:00
Brendan Burns
34eec1fc78
Switch the order of delete, delete pods before deleting nodes.
2015-08-11 12:34:37 -07:00
Veres Lajos
9f77e49109
typofix - https://github.com/vlajos/misspell_fixer
2015-08-08 22:31:48 +01:00
gmarek
819777e9e8
Correctly handle Node deletion in NodeController
2015-08-06 15:17:44 +02:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
deads2k
182885e897
make testclient more precise
2015-08-04 13:35:59 -04:00
gmarek
2201e75666
NodeController small cleanup
2015-08-04 14:44:14 +02:00
gmarek
d27ad5b714
Controller codebase refactoring
2015-08-03 17:06:25 +02:00