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

Upgrade Role's apiVersion #602

Closed
haf opened this issue Jun 18, 2021 · 11 comments
Closed

Upgrade Role's apiVersion #602

haf opened this issue Jun 18, 2021 · 11 comments

Comments

@haf
Copy link

haf commented Jun 18, 2021

customresourcedefinition.apiextensions.k8s.io/sealedsecrets.bitnami.com configured
serviceaccount/sealed-secrets-controller unchanged
Warning: rbac.authorization.k8s.io/v1beta1 Role is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 Role
role.rbac.authorization.k8s.io/sealed-secrets-key-admin unchanged
role.rbac.authorization.k8s.io/sealed-secrets-service-proxier unchanged
Warning: rbac.authorization.k8s.io/v1beta1 ClusterRole is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRole
clusterrole.rbac.authorization.k8s.io/secrets-unsealer unchanged
Warning: rbac.authorization.k8s.io/v1beta1 RoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 RoleBinding
rolebinding.rbac.authorization.k8s.io/sealed-secrets-controller unchanged
rolebinding.rbac.authorization.k8s.io/sealed-secrets-service-proxier unchanged
Warning: rbac.authorization.k8s.io/v1beta1 ClusterRoleBinding is deprecated in v1.17+, unavailable in v1.22+; use rbac.authorization.k8s.io/v1 ClusterRoleBinding
clusterrolebinding.rbac.authorization.k8s.io/sealed-secrets-controller unchanged

Like the warnings say

@dewe
Copy link

dewe commented Jun 22, 2021

  • Migrate manifests and API clients to use the rbac.authorization.k8s.io/v1 API version, available since v1.8.
  • All existing persisted objects are accessible via the new APIs
  • No notable changes

https://kubernetes.io/docs/reference/using-api/deprecation-guide/#rbac-resources-v122

@chriscardillo
Copy link

Thanks for raising this issue.

I am still a little confused. Does that mean sealed-secrets 0.16.0 will not work with k8s 1.22+ currently until the manifests are updated?

@haf
Copy link
Author

haf commented Aug 6, 2021

The manifests with the old versions will stop working yes. If they have already been applied and GKE performs the upgrade on its own it means the existing code will also stop working immediately.

@dosmanak
Copy link
Contributor

Is it correct the fix is single sed command?

@cawolf
Copy link

cawolf commented Aug 26, 2021

@dosmanak do you want to provide a PR for this?

dosmanak added a commit to dosmanak/sealed-secrets that referenced this issue Aug 26, 2021
rbac.authorization.k8s.io/v1beta1 Role is deprecated in v1.17+,
unavailable in v1.22+; use rbac.authorization.k8s.io/v1

done using command:
find -type f -exec sed -i -e 's%rbac.authorization.k8s.io/v1beta1%rbac.authorization.k8s.io/v1%g' {} \;
@dosmanak
Copy link
Contributor

Awaiting aproval to run the tests in PR #627

@xak2000
Copy link

xak2000 commented Sep 28, 2021

AFAIK, GKE clusters will soon be updated to Kubernetes v1.22 in stable branch, so this issue is pretty important.

Btw, the issue name is strange to me: it's not about "Role's namespace". It's about deprecated api version. :)

@dosmanak
Copy link
Contributor

Awaiting aproval to run the tests in PR #627

A month later I still wait for approval to run the tests etc. Anyone with particular permission, please respond.

@chriscardillo
Copy link

@dosmanak - I tested #627 and it looks good as best I can tell. Awaiting word from @mkmik.

@benreynolds-drizly
Copy link

Would love to see this change released ASAP.

beltran-rubo pushed a commit that referenced this issue Nov 2, 2021
rbac.authorization.k8s.io/v1beta1 Role is deprecated in v1.17+,
unavailable in v1.22+; use rbac.authorization.k8s.io/v1

done using command:
find -type f -exec sed -i -e 's%rbac.authorization.k8s.io/v1beta1%rbac.authorization.k8s.io/v1%g' {} \;
@dosmanak
Copy link
Contributor

dosmanak commented Nov 5, 2021

#627 has been merged after some procedural strugle. @haf you can close the issue finally 🥳.

@mkmik mkmik closed this as completed Nov 9, 2021
@mkmik mkmik changed the title Upgrade Role's namespace Upgrade Role's apiVersion Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants