Skip to content

Commit

Permalink
Remove deprecated rbac.authorization.k8s.io/v1beta1
Browse files Browse the repository at this point in the history
This commit updates the README and examples to use
rbac.authorization.k8s.io/v1 instead, which has been available
since K8s 1.8

rbac.authorization.k8s.io/v1beta1 was deprecated in K8s 1.17
and removed in K8s 1.22.

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

Signed-off-by: Will Daly <[email protected]>
  • Loading branch information
wedaly committed May 3, 2023
1 parent 9536355 commit 1f3ad0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Note, that you will also need to add an RBAC rule to allow `Goldpinger` to list

```yaml
---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: default
Expand Down
2 changes: 1 addition & 1 deletion extras/example-serviceaccounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ rules:
- list

---
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: goldpinger-clusterrolebinding
Expand Down

0 comments on commit 1f3ad0a

Please sign in to comment.