Zihong Zheng
28d2e67ff7
Emit event when failed to create route
2017-07-28 15:39:47 -07:00
Kubernetes Submit Queue
96f7788f78
Merge pull request #48797 from FengyunPan/fix-empty-cidr
...
Automatic merge from submit-queue (batch tested with PRs 48231, 47377, 48797, 49020, 49033)
Fix parsing empty CIDR
Fix #48795
Checking ClusterCIDR and ServiceCIDR before parsing them.
**Release note**:
```release-note
NONE
```
2017-07-17 19:37:45 -07:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
FengyunPan
dfc8b667a2
Fix parsing empty CIDR
...
Fix #48795
Checking ClusterCIDR and ServiceCIDR before parsing them.
2017-07-13 21:08:43 +08:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Justin Santa Barbara
11f8886f12
AWS: Remove blackhole routes in our managed range
...
Blackhole routes otherwise acccumulate unboundedly. We also are careful
to ensure that we do so only within the managed range, which requires
enlisting the help of the routecontroller.
Fix #47524
2017-06-14 23:02:55 -04:00
Chao Xu
4f9591b1de
move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod
2017-04-17 11:38:11 -07:00
Andy Goldstein
e63fcf708d
Make controller Run methods consistent
...
- startup/shutdown logging
- wait for cache sync logging
- defer utilruntime.HandleCrash()
- wait for stop channel before exiting
2017-04-14 07:27:45 -04:00
FengyunPan
c0f5b38647
Fix Judgment statement
...
The 'i' can not be equal to updateNodeStatusMaxRetries in
updateNetworkingCondition(), and can not get error.
Let's update it.
2017-03-31 18:56:38 +08:00
Andy Goldstein
effde6b8dd
Switch route controller to shared informers
2017-02-13 15:21:33 -05:00
deads2k
b0b156b381
make tools/cache authoritative
2017-01-25 08:29:45 -05:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
deads2k
1ce0637b27
move listers out of cache to reduce import tree
2017-01-20 15:01:38 -05:00
deads2k
77b4d55982
mechanical
2017-01-16 09:35:12 -05:00
Klaus Ma
25fe1e0d82
Made cache.Controller to be interface.
2017-01-13 13:33:23 +08:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
NickrenREN
639572ac68
fix redundant alias and remove unused function
2017-01-09 17:13:09 +08:00
Chao Xu
03d8820edc
rename /release_1_5 to /clientset
2016-12-14 12:39:48 -08:00
Clayton Coleman
3454a8d52c
refactor: update bazel, codec, and gofmt
2016-12-03 19:10:53 -05:00
Clayton Coleman
5df8cc39c9
refactor: generated
2016-12-03 19:10:46 -05:00
Chao Xu
7eeb71f698
cmd/kube-controller-manager
2016-11-23 15:53:09 -08:00
Jan Chaloupka
6079053407
Update clientset generator to use RESTClient interface instead of the RESTClient data type
2016-10-21 10:13:51 +02:00
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
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
eulerzgy
4ed5f9d240
adjust package name for pkg/controller directory
2015-10-12 09:51:27 +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