Commit 6612419
Add delay between retries when waiting for prometheus pod
In some cases, the job executes the oc wait right in the moment when the
pod has been deleted and the new one is not created yet. In that
situation oc wait fails with a `pods ... not found` error and exits
immediately, so the 1 minute timeout is not applied and the 10 retries
are executed immediately.
To avoid that, I'm adding a delay between retries so that, it waits for
before re-executing it so that it has time for the pod to be created.1 parent d210d97 commit 6612419
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments