From 6e0435e5a68dabf5c740d67e22bcc1ceafbbe11f Mon Sep 17 00:00:00 2001 From: Phil Sphicas Date: Mon, 18 Oct 2021 15:49:04 -0700 Subject: [PATCH] Update RBAC apiVersion from v1beta1 to v1 The rbac.authorization.k8s.io/v1beta1 API version of ClusterRole, ClusterRoleBinding, Role, and RoleBinding is deprecated in v1.17+, unavailable in v1.22+. https://kubernetes.io/docs/reference/using-api/deprecation-guide/ Change-Id: I4e1ad80612796197d04d263cb9f899eca1482a9e --- charts/ceph-utility/templates/deployment-utility.yaml | 4 ++-- charts/compute-utility/templates/deployment-utility.yaml | 4 ++-- .../etcdctl-utility/templates/deployment-etcdctl-utility.yaml | 4 ++-- charts/mysqlclient-utility/templates/deployment-utility.yaml | 4 ++-- charts/openstack-utility/templates/deployment-utility.yaml | 4 ++-- charts/postgresql-utility/templates/deployment-utility.yaml | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/charts/ceph-utility/templates/deployment-utility.yaml b/charts/ceph-utility/templates/deployment-utility.yaml index a02c6ebe..28c5b673 100644 --- a/charts/ceph-utility/templates/deployment-utility.yaml +++ b/charts/ceph-utility/templates/deployment-utility.yaml @@ -18,7 +18,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s" $envAll.Release.Name }} {{ tuple $envAll "utility" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ $serviceAccountName }} @@ -34,7 +34,7 @@ rules: - list - watch --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ $serviceAccountName }} diff --git a/charts/compute-utility/templates/deployment-utility.yaml b/charts/compute-utility/templates/deployment-utility.yaml index 98996889..173f48d0 100644 --- a/charts/compute-utility/templates/deployment-utility.yaml +++ b/charts/compute-utility/templates/deployment-utility.yaml @@ -17,7 +17,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s" $envAll.Release.Name }} {{ tuple $envAll "utility" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ $serviceAccountName }} @@ -34,7 +34,7 @@ rules: - exec - create --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ $serviceAccountName }} diff --git a/charts/etcdctl-utility/templates/deployment-etcdctl-utility.yaml b/charts/etcdctl-utility/templates/deployment-etcdctl-utility.yaml index cd660f13..6eaaf508 100644 --- a/charts/etcdctl-utility/templates/deployment-etcdctl-utility.yaml +++ b/charts/etcdctl-utility/templates/deployment-etcdctl-utility.yaml @@ -17,7 +17,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s" $envAll.Release.Name }} {{ tuple $envAll "utility" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ $serviceAccountName }} @@ -63,7 +63,7 @@ rules: - update - delete --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ $serviceAccountName }} diff --git a/charts/mysqlclient-utility/templates/deployment-utility.yaml b/charts/mysqlclient-utility/templates/deployment-utility.yaml index 8431f658..e9b761cd 100644 --- a/charts/mysqlclient-utility/templates/deployment-utility.yaml +++ b/charts/mysqlclient-utility/templates/deployment-utility.yaml @@ -17,7 +17,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s" $envAll.Release.Name }} {{ tuple $envAll "utility" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ $serviceAccountName }} @@ -61,7 +61,7 @@ rules: - update - delete --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ $serviceAccountName }} diff --git a/charts/openstack-utility/templates/deployment-utility.yaml b/charts/openstack-utility/templates/deployment-utility.yaml index 714b8a39..162fa632 100644 --- a/charts/openstack-utility/templates/deployment-utility.yaml +++ b/charts/openstack-utility/templates/deployment-utility.yaml @@ -17,7 +17,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s" $envAll.Release.Name }} {{ tuple $envAll "utility" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ $serviceAccountName }} @@ -34,7 +34,7 @@ rules: - list - watch --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ $serviceAccountName }} diff --git a/charts/postgresql-utility/templates/deployment-utility.yaml b/charts/postgresql-utility/templates/deployment-utility.yaml index db717766..8798d109 100644 --- a/charts/postgresql-utility/templates/deployment-utility.yaml +++ b/charts/postgresql-utility/templates/deployment-utility.yaml @@ -17,7 +17,7 @@ limitations under the License. {{- $serviceAccountName := printf "%s" $envAll.Release.Name }} {{ tuple $envAll "utility" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }} --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ $serviceAccountName }} @@ -60,7 +60,7 @@ rules: - update - delete --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ $serviceAccountName }}