Jan Chaloupka
4389b3f0d6
Rewritte util.* -> wait.* wherever reasonable
2016-02-07 12:02:20 +01:00
Daniel Smith
9b68e8ec2b
Merge pull request #20269 from mqliang/sync-delta-fifo
...
add a HasSynced() for DeltaFIFO and FIFO, method, which is very helpful for Informer
2016-02-05 15:51:50 -08:00
mqliang
8e615df000
fix the HasSynced() bug for Informer
2016-02-03 11:40:11 +08:00
harry
1032067ff9
Replace runtime reference by pkg
2016-02-01 21:06:44 +08:00
Wojciech Tyczynski
960808bf08
Switch to versioned ListOptions in client.
2015-12-14 14:26:09 +01:00
k8s-merge-robot
b46cee885a
Merge pull request #18378 from krousey/controllerflake
...
Auto commit by PR queue bot
2015-12-09 08:44:29 -08:00
Kris
cec9c47f41
Only delete pods when they reach final state
2015-12-08 11:35:42 -08:00
Wojciech Tyczynski
b0fcb5adef
Pass ListOptions to List in ListWatch.
2015-12-07 11:53:53 +01:00
Wojciech Tyczynski
b6ef62af24
Use unversioned.ListOptions in clients.
2015-11-24 16:52:09 +01:00
feihujiang
ad79fa6e84
Move list functions from runtime to meta package
2015-11-20 09:20:55 +08:00
Wojciech Tyczynski
d47e21f19f
Reuse TCP connections in Reflector between resync periods.
2015-10-26 19:35:25 +01:00
Daniel Smith
4bdb1259a7
fix delta fifo & various fakes for go1.5.1
2015-10-14 16:07:46 -07:00
Brendan Burns
d82567de85
Revert "Controller framework test flake fix"
2015-09-29 20:17:16 -07:00
Daniel Martí
fdd7322b38
Use DeleteDropWatch instead of Delete in test
...
Using the latter resulted in receiving extra OnDelete event callbacks. Using
DeleteDropWatch removed the flake.
Fixes #14138 .
2015-09-26 11:55:34 -07:00
Daniel Martí
61e4eb4e1f
Proper format string for ints
2015-09-26 11:52:33 -07:00
Daniel Martí
011db554e5
Simplify fake controller lock
2015-09-26 11:52:17 -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
Mike Danese
b0457bee94
Merge pull request #13058 from mvdan/go1.5
...
Race condition and test fixes
2015-09-10 15:10:19 -07:00
Daniel Martí
d15de72a92
Fix race condition in controller_test
...
Our WaitGroup.Add() call might happen after some WaitGroup.Done() calls done
by the controller, so make sure that doesn't happen by doing the Add() calls
before letting the controller run.
--- FAIL: TestUpdate (2.00s)
panic: sync: WaitGroup is reused before previous Wait has returned [recovered]
panic: sync: WaitGroup is reused before previous Wait has returned
2015-09-10 14:33:23 -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
Kris Rousey
ae6c64d9bb
Moving everyone to unversioned client
2015-08-18 10:23:03 -07:00
Kris Rousey
565189f5b8
Correcting all go vet errors
2015-08-11 13:55:37 -07:00
Clayton Coleman
61c7beb51f
Add an Enqueue method to framework.Controller
...
Allows clients to requeue delta events in the event they
need to delay processing.
2015-08-07 13:21:49 -04:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Wojciech Tyczynski
33318f0162
Use generated DeepCopy methods.
2015-05-28 09:03:27 +02:00
Jordan Liggitt
49ceb82179
Wait until stores are filled before processing service account token events
2015-05-20 22:19:42 -04:00
Jordan Liggitt
0955808668
ServiceAccountTokens controller
2015-05-11 17:18:05 -04:00
Eric Paris
6b3a6e6b98
Make copyright ownership statement generic
...
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
markturansky
34924af63d
Fixed typos in comments
2015-04-16 08:52:36 -04:00
Daniel Smith
3fdfea3ad8
fix fake controller source watch behavior
2015-04-14 13:31:35 -07:00
Daniel Smith
d02139d2b4
Merge pull request #6771 from derekwaynecarr/ns_controller
...
Remove delay when deleting namespaces, move to new controller framework
2015-04-13 17:55:13 -07:00
Daniel Smith
1ec6b02e99
fix tests flaky due to timeouts
2015-04-13 15:16:59 -07:00
derekwaynecarr
c1a3fa0dae
Remove delay when deleting namespaces, move to new controller framework
2015-04-13 15:18:22 -04:00
Daniel Smith
dd26cdf0f7
Fix comments; switch to watching nodes
2015-04-10 17:49:51 -07:00
Daniel Smith
395d69641e
fix race
2015-04-10 16:02:51 -07:00
Daniel Smith
6835318d1e
switch to require 'go controller.Run()'
2015-04-10 14:05:08 -07:00
Daniel Smith
880f922bb6
Add easy setup for simple controller
...
Also add tests; coverage up to 86.7%
2015-04-10 14:05:07 -07:00
Daniel Smith
3fe17b93cf
Begin a controller framework.
2015-04-02 15:25:58 -07:00