-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add permission to update namespaces/finalizers #11517
Conversation
Codecov Report
@@ Coverage Diff @@
## main #11517 +/- ##
=======================================
Coverage 87.75% 87.76%
=======================================
Files 191 191
Lines 9262 9269 +7
=======================================
+ Hits 8128 8135 +7
+ Misses 882 881 -1
- Partials 252 253 +1
Continue to review full report at Codecov.
|
/test pull-knative-serving-upgrade-tests |
Umm... Updating clusterrole makes diff and failed 🤔
|
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: ```
Probably we need a similar workaround with carvel-dev/kapp#213 🤔 |
The upgrade test passed this time, but it will be flake until carvel-dev/kapp#227 was fixed. |
This could be fixed by adding kapp config. |
test/e2e-common.sh
Outdated
@@ -288,7 +288,6 @@ function install() { | |||
> "${ytt_result}" \ | |||
|| fail_test "failed to create deployment configuration" | |||
|
|||
|
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.
Total nit: Can we drop this unnecessary change? LGTM otherwise.
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.
Sure! updated.
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markusthoemmes, nak3 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 |
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:
/cc @markusthoemmes @julz @dprotaso
Release Note