-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable configurable client retries with backoff in RekorClient #1096
Conversation
Signed-off-by: Bob Callaway <bcallaway@google.com>
Signed-off-by: Bob Callaway <bcallaway@google.com>
cba5641
to
740de50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOVE IT!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Signed-off-by: Bob Callaway <bcallaway@google.com>
Codecov Report
@@ Coverage Diff @@
## main #1096 +/- ##
==========================================
+ Coverage 63.68% 63.75% +0.07%
==========================================
Files 82 82
Lines 7559 7574 +15
==========================================
+ Hits 4814 4829 +15
Misses 2119 2119
Partials 626 626
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This adds a configurable amount of retries for users of RekorClient, as well as the ability to customize the logger. The underlying library (github.com/hashicorp/go-retryablehttp) implements exponential backoff and respects
Retry-After
response headers.I'll push up another PR that changes
rekor-cli
to take advantage of these changes.Signed-off-by: Bob Callaway bcallaway@google.com