Justin Santa Barbara
54195d590f
Use strongly-typed types.NodeName for a node name
...
We had another bug where we confused the hostname with the NodeName.
To avoid this happening again, and to make the code more
self-documenting, we use types.NodeName (a typedef alias for string)
whenever we are referring to the Node.Name.
A tedious but mechanical commit therefore, to change all uses of the
node name to use types.NodeName
Also clean up some of the (many) places where the NodeName is referred
to as a hostname (not true on AWS), or an instanceID (not true on GCE),
etc.
2016-09-27 10:47:31 -04:00
Wojciech Tyczynski
a6ef37ece9
Use Informer framework in route controller
2016-09-19 11:53:30 +02:00
Wojciech Tyczynski
d7d6249781
Don't update NodeNetworkUnavailable condition if it's already set correctly
2016-09-16 21:03:20 +02: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
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
Random-Liu
59ea5c088b
Change route controller to use patch to set node condition.
2016-07-12 10:30:33 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Wojciech Tyczynski
de1d35a66d
Improve logging in routecontroller
2016-06-03 12:05:12 +02:00
Wojciech Tyczynski
be1b57100d
Change to NotReadyNetworking and use in scheduler
2016-05-27 19:32:49 +02:00
gmarek
7bdf480340
Node is NotReady until the Route is created
2016-05-27 19:29:51 +02:00
Wojciech Tyczynski
aa65a7974a
Spread creating routes over time and retry on failures
2016-05-26 13:00:53 +02:00
Zach Loafman
3ec25c5425
routecontroller: Add wait.NonSlidingUntil, use it
...
Make sure the reconciliation loop kicks in again immediately if it
takes a loooooong time.
2016-05-25 13:58:35 -07:00
gmarek
3171aac57c
Generated clients can return their RESTClients, RESTClient can return its RateLimiter
2016-04-27 22:15:10 +02:00
Alex Mohr
0816fa2072
Add support for more than 500 results to GCE cloud provider API calls
...
for Instance.List and Routes.List which we will definitely have
more than 500 of when supporting 1000 nodes.
Add TODOs for other GCE List API calls to do similar fixes.
Add more logging to GCE's routecontroller.go when creating or deleting routes.
2016-02-26 16:03:01 -08:00
David Oppenheimer
690aae1e67
Wait for goroutines creating routes to finish.
2016-02-25 22:36:51 -08:00
gmarek
b862d2bfe6
Wait for all route creation in RouteController
2016-02-22 10:12:23 +01:00
CJ Cullen
918b0ef479
Don't try to create routes for nodes w/o CIDRs assigned.
2016-02-10 16:23:28 -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
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
Wojciech Tyczynski
6dcb689d4e
Simplify List() signature in clients.
2015-12-03 09:54:07 +01:00
Wojciech Tyczynski
8343c8ce6c
Pass ListOptions to List() methods.
2015-12-01 15:00:36 +01:00
Steve Milner
8da2d4002f
Fixes remaining imports per #15319
2015-10-20 07:13:13 -04:00
k8s-merge-robot
a6634adc1c
Merge pull request #15435 from zhengguoyong/adjust_package_name_pkgcloudprovider
...
Auto commit by PR queue bot
2015-10-16 08:30:32 -07:00
eulerzgy
4ed5f9d240
adjust package name for pkg/controller directory
2015-10-12 09:51:27 +08:00
eulerzgy
8b174f7f33
adjust package name for pkg/cloudprovider
2015-10-10 16:44:54 +08: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
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Bryan Stenson
9541414742
create cloudprovider "providers" package
...
move all providers into new package
update all references to old package path
2015-08-11 22:36:51 -07: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
d27ad5b714
Controller codebase refactoring
2015-08-03 17:06:25 +02:00