kubernetes/pkg/controller/node
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
..
doc.go adjust package name for pkg/controller directory 2015-10-12 09:51:27 +08:00
nodecontroller_test.go update StatusDetails to handle Groups 2015-12-17 09:14:12 -05:00
nodecontroller.go Fix TODO in pkg/controller/nodecontroller.go line 472 2015-12-28 11:15:38 -08:00
rate_limited_queue_test.go adjust package name for pkg/controller directory 2015-10-12 09:51:27 +08:00
rate_limited_queue.go RateLimiter: change CanAccept() to TryAccept() 2015-11-23 16:42:53 -08:00