-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
🐛 (go/v4) Fix issue with scaffolding multiple webhooks for the same resource #4286
🐛 (go/v4) Fix issue with scaffolding multiple webhooks for the same resource #4286
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 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 |
3b9c7d5
to
a7fab10
Compare
182dc8f
to
03e167c
Compare
Previously, attempting to create multiple webhooks for the same resource with different configurations (e.g., `--defaulting` and `--programmatic-validation`) resulted in an error indicating that the webhook already exists. This update allows multiple webhook types to be scaffolded for a single resource without conflict, providing flexibility for users be able to scaffold different types of webhooks for the same GKV afterwords and without the need to be all by once.
03e167c
to
ae3bcf6
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.
It is a very small bug so I will move forward
I will not make nobody waste time on the reviews here when we have a lot of open PRs that we really need a hand on the reviews.
Anyway, if someone has any suggestion for improvement and etc please fell free to send a PR against. Your help is very welcome and appreciated !
We are reverting the changes done in the PR kubernetes-sigs#4286. We are just keeping the e2e tests improvements. We will not able to solve the issue kubernetes-sigs#4146 without add new markers. We cannot skip the action to write an webhook since it will result in incomplete inplementation in the <kind>_webhook.go as in the <kind>_webhook_test.go
🐛 revert the changes done in the PR #4286
We are reverting the changes done in the PR kubernetes-sigs#4286. We are just keeping the e2e tests improvements. We will not able to solve the issue kubernetes-sigs#4146 without add new markers. We cannot skip the action to write an webhook since it will result in incomplete inplementation in the <kind>_webhook.go as in the <kind>_webhook_test.go
Attempting to create multiple webhooks for the same resource with different configurations (e.g.,
--defaulting
and--programmatic-validation
) resulted in an error indicating that the webhook already exists.This update allows multiple webhook types to be scaffolded for a single resource without conflict. Users can scaffold different webhooks for the same GKV afterwards without needing to do so all at once, as expected.
Either we are adding tests to cover the webhook undergo/v4 conversion type.
The tests are scaffolding the conversion webhook after the defaulting and validation were created already.
Therefore, we are validating the fix done in this PR.
Closes: #4146