From 1f3ad0acc92a6a1cdbf09ad347c21fb50ff48685 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Wed, 3 May 2023 11:25:44 -0700 Subject: [PATCH] Remove deprecated rbac.authorization.k8s.io/v1beta1 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 --- README.md | 2 +- extras/example-serviceaccounts.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 297ade4..985c41a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/extras/example-serviceaccounts.yml b/extras/example-serviceaccounts.yml index 03e0075..9c7d3c3 100644 --- a/extras/example-serviceaccounts.yml +++ b/extras/example-serviceaccounts.yml @@ -102,7 +102,7 @@ rules: - list --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: goldpinger-clusterrolebinding