Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ExponentialBackoff (internal/retry/wait/kubernetes_apimachinery_wait.…
…go:112) breaks the loop when backoff.Steps == 1. This might cause the `gcrane cp` command to face 429 errors when we have only 2 steps to GCRBackoff because the wait period is only ~1 minute. For some reason I saw 429 errors from GCR even after a wait of 15 minutes. Do a couple of improvements to remediate this issue: - Decrease Factor to 5.0 seconds and increase steps to 6. - This way we get more retries and the maximum wait time is 1 hour after which the run will fail. - Update GCRBackoff docstring.
- Loading branch information