-
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
🐛 use rbac.authorization.k8s.io/v1 for the auth proxy client #1731
🐛 use rbac.authorization.k8s.io/v1 for the auth proxy client #1731
Conversation
All other template scaffolds are using rbac.authorization.k8s.io/v1. It seems that it was an oversight that caused this file to continue using rbac.authorization.k8s.io/v1beta1, which is deprecated as of k8s 1.17+.
Question: should this be backported to the v2 plugin? In v2, this also appears to be the only ClusterRole using |
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.
Hi @joelanford,
It shows ok for me 👍
/approve
Question: should this be backported to the v2 plugin? In v2, this also appears to be the only ClusterRole using rbac.authorization.k8s.io/v1beta1
I do not think so. It would change the current behaviour of v2+, so by following the current approach we ough to push to only v3+
Could you please add in the title (only v3+), in POV it makes it easier for us to identify in the release notes that the change was applied only to v3+.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, joelanford 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 |
@camilamacedo86 Since v2 is already scaffolding other RBAC resources with IMO, we should include this change for v2 as well. |
Hi @joelanford,
I understand that ANY bug fixes can be addressed to v2+. However, the reviews have been very restrictive and in many scenarios, besides the change be only a bug fix was decided to be applied just to v3+ because changes the behaviour. However, I checked here that the other scaffolds are using v1 api already. So, I agree with you that would be ok in this case we push the change to v2 as well. @christopherhein @pwittrock @gabbifish wdyt? Are you ok with? |
I’m good with this change, it’s easy enough and “non-breaking” so much as the functionality still works no matter what apiversion as long as your control plane supports it. |
It sounds like there's consensus to include this in the v2 plugin, so I'll update this PR to include this change there as well. |
All other template scaffolds are using rbac.authorization.k8s.io/v1. It seems that it was an oversight that caused this file to continue using rbac.authorization.k8s.io/v1beta1, which is deprecated as of k8s 1.17+.
/lgtm |
This PR updates the
metrics-reader
ClusterRole scaffolded by the v3 Go plugin to use apiVersionrbac.authorization.k8s.io/v1
instead of the deprecated (since k8s 1.17)rbac.authorization.k8s.io/v1beta1
.All other template scaffolds are using
rbac.authorization.k8s.io/v1
. It seems that it was an oversight that caused this file to continue usingrbac.authorization.k8s.io/v1beta1
.