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
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
Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
Chao Xu
184440f8ef
rename release_1_2 to internalclientset
2016-02-05 14:02:28 -08:00
Chao Xu
1b047f8e67
rename legacy to core
2016-02-04 14:26:56 -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
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
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
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
Mike Danese
836b68368b
make nodecontroller delete terminating pods on 1.0 nodes
2015-10-21 13:07:03 -07: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