Commit 0a4e4b1
authored
OCPBUGS-29479: Add retries to async cache initialization (#13610)
* OCPBUGS-29479: Add retries to async cache initialization
Auth initialization can fail if the API server not ready yet. This is especially common during cluster install.
* Don't log errors on async cache retries.
* Use context.WithTimeout and wait.UntilWithContext instead of a for loop to retry auth async cache setup
* Use `wait.PollUntilContextTimeout` for async cache initialization
* Address review comments
- Log error on each retry
- Do not return error from PollUntilContextTimeout condition func
- Reduce retry interval to 10 seconds to match historical behavior1 parent 97b74c6 commit 0a4e4b1
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
31 | 53 | | |
32 | 54 | | |
33 | 55 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 56 | | |
38 | 57 | | |
39 | 58 | | |
| |||
0 commit comments