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

🐛 use rbac.authorization.k8s.io/v1 for the auth proxy client #1731

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

joelanford
Copy link
Member

This PR updates the metrics-reader ClusterRole scaffolded by the v3 Go plugin to use apiVersion rbac.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 using 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 using
rbac.authorization.k8s.io/v1beta1, which is deprecated as of k8s 1.17+.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 20, 2020
@joelanford
Copy link
Member Author

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

Copy link
Member

@camilamacedo86 camilamacedo86 left a 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+.

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 20, 2020
@joelanford
Copy link
Member Author

@camilamacedo86 Since v2 is already scaffolding other RBAC resources with rbac.authorization.k8s.io/v1 (in fact ALL other RBAC resources use v1), to me this is a non-breaking backwards-compatible bug fix, and since this file is scaffolded during init, it will not have any effect on existing projects.

IMO, we should include this change for v2 as well.

@camilamacedo86
Copy link
Member

camilamacedo86 commented Oct 20, 2020

Hi @joelanford,

@camilamacedo86 Since v2 is already scaffolding other RBAC resources with rbac.authorization.k8s.io/v1 (in fact ALL other RBAC resources use v1), to me this is a non-breaking backwards-compatible bug fix, and since this file is scaffolded during init, it will not have any effect on existing projects.

IMO, we should include this change for v2 as well.

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?

@christopherhein
Copy link
Member

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.

@joelanford
Copy link
Member Author

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+.
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 21, 2020
@estroz
Copy link
Contributor

estroz commented Oct 21, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 21, 2020
@k8s-ci-robot k8s-ci-robot merged commit 36124ae into kubernetes-sigs:master Oct 21, 2020
@joelanford joelanford deleted the proxy-client-role-v1 branch October 29, 2020 04:32
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", 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.

5 participants