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

Retry on webhook EOF errors #260

Conversation

pierDipi
Copy link
Member

This patch adds a workaround for knative/pkg#1509.

In the existing eventing testing library we have a similar workaround:
https://github.com/knative/eventing/blob/a8a30634681b2f0b23e5218348d9ae9a42cc00ff/test/lib/creation.go#L55-L72

Changes

  • Retry on webhook EOF errors

/kind bug

Fixes knative/eventing#5892

Release Note

Retry on webhook EOF errors.

Docs

None

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@knative-prow-robot knative-prow-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 11, 2021
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Nov 11, 2021
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 11, 2021
Copy link

@odacremolbap odacremolbap left a comment

Choose a reason for hiding this comment

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

Code wise+1.
Unsure about assuming eventing if this retry workaround is potentially helpful for other webhooks.

pkg/manifest/installer.go Outdated Show resolved Hide resolved
Co-authored-by: Pablo Mercado <[email protected]>
@pierDipi
Copy link
Member Author

Thanks for the review Pablo!

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 11, 2021
Copy link

@antoineco antoineco left a comment

Choose a reason for hiding this comment

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

Hacky! But that works :)

@pierDipi
Copy link
Member Author

/assign @lionelvillard @devguyio

@lionelvillard
Copy link
Contributor

/approve

@knative-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: antoineco, lionelvillard, odacremolbap, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 12, 2021
@knative-prow-robot knative-prow-robot merged commit edafe72 into knative-extensions:main Nov 12, 2021
@pierDipi pierDipi deleted the KNATIVE-5892_Rety-on-webhook-errors branch November 12, 2021 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry on webhook errors in rekt tests
6 participants