Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubectl): add metrics to retries, make log messages more descript…
…ive and support retries for all kubectl actions (#5854) * fix(kubectl): reduce duplicate retry log messages and add retry metrics * add tests to show duplicate logs aren't being printed when multiple threads are running the same command * add metrics support * refactor criteria that decides if an error should be retried. This is needed so that metrics are reported correctly * refactor tests * add short custom log messages for retries instead of the default verbose ones * fix(kubectl/retries): refactor kubectl retry logic such that a new job request is created for each retry attempt This helps prevent the input stream from being empty for calls like kubectl apply -f - on subsequent retry attempts, which leads to the 'no objects passed to apply' error message * refactor(kubernetes/test): use MemoryAppender to simplify KubectlJobExecutorTest Co-authored-by: Apoorv Mahajan <apoorv.mahajan@salesforce.com>
- Loading branch information
1 parent
da953e0
commit 46706fe
Showing
8 changed files
with
1,002 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.