feat: context copy retry. If we add a for loop and execute the kubectlcli.Run method for copying context to kaniko pod , this makes more reliable and less prune to network failures#7887
Conversation
santinoncs
commented
Sep 25, 2022
- If we add a for loop and execute the kubectlcli.Run method for copying context to kaniko pod , this makes more reliable and less prune to network failures
|
🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use -- conventional-commit-lint bot |
3168a89 to
9e4b54d
Compare
…lcli.Run method for copying context to kaniko pod , this makes more reliable and less prune to network failures
9e4b54d to
4b1af8e
Compare
| if errTar != nil { | ||
| errRun = fmt.Errorf("%v\ntar errors: %w", errRun, errTar) | ||
| attempts := 0 | ||
| attemptMax := 3 |
There was a problem hiding this comment.
nit: can you make this a const and put it at the top of the file? Thanks!
|
Thanks for the PR @santinoncs, left one nit comment. Once we resolve that we should be able to merge |
thanks! |
Codecov Report
@@ Coverage Diff @@
## main #7887 +/- ##
==========================================
- Coverage 70.48% 66.85% -3.63%
==========================================
Files 515 594 +79
Lines 23150 28764 +5614
==========================================
+ Hits 16317 19230 +2913
- Misses 5776 8123 +2347
- Partials 1057 1411 +354
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
tejal29
left a comment
There was a problem hiding this comment.
This change looks good to me. However can we change the implementation to wire backoff mechanism like elsewhere in the code?
skaffold/pkg/skaffold/docker/logger/log.go
Line 132 in 34f48f7
This will ensure, the code waits before the next attempt.
|
Seems there is linter error preventing merge atm: I think you you remove that newline we can merge 🎊 |
|
can we merge? thanks! |
|
Hi @tejal29 is there any reason we cannot merge this? sorry and thank you! |
|
Sorry for the delay @santinoncs, merging this now. Thanks for the fix! |