-
Notifications
You must be signed in to change notification settings - Fork 331
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
set webhooks ownerReferences to namespace #2098
set webhooks ownerReferences to namespace #2098
Conversation
Welcome @novahe! It looks like this is your first PR to knative/pkg 🎉 |
Hi @novahe. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## main #2098 +/- ##
==========================================
+ Coverage 67.31% 67.54% +0.22%
==========================================
Files 215 215
Lines 9092 9110 +18
==========================================
+ Hits 6120 6153 +33
+ Misses 2697 2679 -18
- Partials 275 278 +3
Continue to review full report at Codecov.
|
1b3b751
to
20349ea
Compare
/ok-to-test The code looks spot on, thanks! Have we tested this is actually fixing the referenced bug? Let's also make sure the OwnerReference doesn't cause the webhook config to be garbage collected. I guess manual tests for both of those are fine. |
Thank you for reviewing @markusthoemmes In my test environment I deleted webhook pod twice, The Am I missing something? What else do I need to do? |
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.
/assign @dprotaso
Sorry for having this dangling for a while. Adding Dave to assert if this isn't breaking assumptions in K8s API.
20349ea
to
603d3f7
Compare
/test pull-knative-pkg-unit-tests |
I fixed it, PTAL thanks |
🎉 tested it out and it works /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, novahe 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 |
/test pull-knative-pkg-unit-tests |
This is going to avoid a lot of user confusion, thanks @novahe 🎉🎉 cc @omerbensaadon @csantanapr I think you will like! |
This patch adds the permission to update `namespaces/finalizers`. Since knative/pkg#2098 added ownerRef refers to namespace for webhook, we need the permission. Without it, cluster which has a stricter RBAC rules gets the following error: ``` cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ```
This patch adds the permission to update `namespaces/finalizers`. Since knative/pkg#2098 added ownerRef refers to namespace for webhook, we need the permission. Without it, cluster which has a stricter RBAC rules gets the following error: ``` cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ```
* Add permission to update namespace finalizer This patch adds the permission to update `namespaces/finalizers`. Since knative/pkg#2098 added ownerRef refers to namespace for webhook, we need the permission. Without it, cluster which has a stricter RBAC rules gets the following error: ``` cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ``` * Add kapp workaround * Add comment * Remove white space * Move kapp config into test/config/ytt/core * remove unnecessary change
(similar to knative/eventing#5501) This patch adds the permission to update `namespaces/finalizers`. Since knative/pkg#2098 added ownerRef refers to namespace for webhook, we need this permission. Without it, cluster which has a stricter RBAC rules gets the following error: ``` cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on ... ``` Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
…#1000) (similar to knative/eventing#5501) This patch adds the permission to update `namespaces/finalizers`. Since knative/pkg#2098 added ownerRef refers to namespace for webhook, we need this permission. Without it, cluster which has a stricter RBAC rules gets the following error: ``` cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on ... ``` Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
…knative-extensions#1000) (similar to knative/eventing#5501) This patch adds the permission to update `namespaces/finalizers`. Since knative/pkg#2098 added ownerRef refers to namespace for webhook, we need this permission. Without it, cluster which has a stricter RBAC rules gets the following error: ``` cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on ... ``` Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Changes
/kind cleanup
Fixes #2044
Release Note
Docs