From 4a3a81c33f7b76f6d99d251e0a9440a8aad9caa2 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Mon, 21 Jun 2021 13:42:02 -0400 Subject: [PATCH] Update role, rolebinding, (cluster...) to v1 apis The cluster rbac and rbac roles in the helm chart templates can still reference the old v1beta1 rbac.authorization.k8s.io API, which must be removed in preparation for K8s 1.22. The CRD changes already meant that Kubernetes 1.16+ was required in the (next) newest version of Helm Operator. This change requires K8s 1.8+ so, while we can mention it separately in the release notes, it does not add any additional functional requirement for the users, as they must already upgrade to this version or greater. Signed-off-by: Kingdon Barrett --- chart/helm-operator/templates/rbac-role.yaml | 4 ++-- chart/helm-operator/templates/rbac.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chart/helm-operator/templates/rbac-role.yaml b/chart/helm-operator/templates/rbac-role.yaml index 069fb5cd4..d907d8441 100644 --- a/chart/helm-operator/templates/rbac-role.yaml +++ b/chart/helm-operator/templates/rbac-role.yaml @@ -1,5 +1,5 @@ {{- if and .Values.rbac.create (eq .Values.clusterRole.create false) -}} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ template "helm-operator.fullname" . }} @@ -17,7 +17,7 @@ rules: verbs: - '*' --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ template "helm-operator.fullname" . }} diff --git a/chart/helm-operator/templates/rbac.yaml b/chart/helm-operator/templates/rbac.yaml index 74bbb1847..a0135e256 100644 --- a/chart/helm-operator/templates/rbac.yaml +++ b/chart/helm-operator/templates/rbac.yaml @@ -1,5 +1,5 @@ {{- if and .Values.rbac.create (eq .Values.clusterRole.create true) -}} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ template "helm-operator.clusterRoleName" . }} @@ -20,7 +20,7 @@ rules: verbs: - '*' --- -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ template "helm-operator.clusterRoleName" . }}