Skip to content
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

feat: Webhook retries #1541

Merged
merged 1 commit into from
Nov 28, 2023
Merged

feat: Webhook retries #1541

merged 1 commit into from
Nov 28, 2023

Conversation

Kwasniewski
Copy link
Contributor

Adding in configurable retries to all webhooks.

This is helpful in our use-case where webhooks can fail several times, but would prefer not to increment the canary iteration failure count.

@codecov-commenter
Copy link

codecov-commenter commented Nov 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3e87c15) 55.03% compared to head (ad8e7d6) 55.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1541      +/-   ##
==========================================
+ Coverage   55.03%   55.04%   +0.01%     
==========================================
  Files          85       85              
  Lines       10355    10358       +3     
==========================================
+ Hits         5699     5702       +3     
  Misses       3994     3994              
  Partials      662      662              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stefanprodan stefanprodan added the kind/enhancement Improvement request for an existing feature label Nov 8, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @Kwasniewski 🥇

pkg/controller/webhook.go Outdated Show resolved Hide resolved
pkg/controller/webhook.go Outdated Show resolved Hide resolved
pkg/controller/webhook.go Outdated Show resolved Hide resolved
pkg/controller/webhook_test.go Show resolved Hide resolved
Copy link
Member

@aryan9600 aryan9600 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also needs some new docs in docs/gitbook/usage/webhooks.md

@aryan9600
Copy link
Member

hey @Kwasniewski, we were hoping to get this out in the next release which is planned for next week, so it'd be great if you could finish the few remaining bits and get this over the line! no pressure tho :)

Add a new field `.spec.webhooks[].retries` to specify the number of
retries when calling a webhook.

Signed-off-by: Joseph Kwasniewski <[email protected]>
@Kwasniewski
Copy link
Contributor Author

Sorry about looking at this slowly, I was away for a bit. The changes look great you put in place! Let me know if there are any other changes you want in place.

@aryan9600 aryan9600 merged commit 8935ef5 into fluxcd:main Nov 28, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvement request for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants