Commit 276719c
* implement backoff for watcher - for #577
Signed-off-by: clux <sszynrae@gmail.com>
* move magic number into strategy
Signed-off-by: clux <sszynrae@gmail.com>
* expose backoff from watcher and semi-propagate into controller
awkward. will write a comment
Signed-off-by: clux <sszynrae@gmail.com>
* potential abstraction
Signed-off-by: clux <sszynrae@gmail.com>
* another builder layer; allow eliding ListParams
Signed-off-by: clux <sszynrae@gmail.com>
* forgot to add file
Signed-off-by: clux <sszynrae@gmail.com>
* easy parts of code review
Signed-off-by: clux <sszynrae@gmail.com>
* rewrite as a helper (take N)
jesus this stuff is hard.
Signed-off-by: clux <sszynrae@gmail.com>
* rename as suggested
Signed-off-by: clux <sszynrae@gmail.com>
* Reimplement watcher backoff as FSM (#720)
* Fix clippy warnings
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Reimplement watch backoff as FSM
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Remove useless lifetime bounds
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Silence clippy size warning
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Silence clippy properly this time around
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Split StreamBackoff into a separate utils module
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Backoff tests
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Add stream close test
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* remove backoff pin, fix docs
Signed-off-by: clux <sszynrae@gmail.com>
* newline
Signed-off-by: clux <sszynrae@gmail.com>
* Add `Backoff` wrapper that implements client-go's reset timer behaviour (#729)
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* use new reset backoff and replicate client-go reflector values
Signed-off-by: clux <sszynrae@gmail.com>
* fix node watcher example
Signed-off-by: clux <sszynrae@gmail.com>
* Use released `backoff`
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Factor out default `Backoff`
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Add note to `watcher` about backoff
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Added backoff to Controller
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Changelog
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Revert `Observer` for now
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* The clippyman comes for us all, eventually
And we must all pay our due respects, or pay the price.
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* Fix build warnings
Signed-off-by: Teo Klestrup Röijezon <teo@nullable.se>
* remove backoff_watch
Signed-off-by: clux <sszynrae@gmail.com>
* doc tweaks
Signed-off-by: clux <sszynrae@gmail.com>
* sentence
Signed-off-by: clux <sszynrae@gmail.com>
* upgrading backoff is not actually breaking
Signed-off-by: clux <sszynrae@gmail.com>
Co-authored-by: Teo Klestrup Röijezon <teo.roijezon@stackable.de>
Co-authored-by: Teo Klestrup Röijezon <teo@nullable.se>
1 parent 155859b commit 276719c
22 files changed
Lines changed: 372 additions & 35 deletions
File tree
- examples
- kube-client/src
- discovery
- kube-core/src
- kube-runtime
- src
- controller
- utils
- kube/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | | - | |
21 | | - | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments