Add kubernetes 1.22 support
{{- if .Values.rbac.create }}
kind: ClusterRole
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
{{ include "kanister-operator.helmLabels" . | indent 4 }}
@@ -26,7 +26,7 @@ rules:
- "*"
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
{{ include "kanister-operator.helmLabels" . | indent 4 }}
@@ -41,7 +41,7 @@ subjects:
namespace: {{ .Release.Namespace }}
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
{{ include "kanister-operator.helmLabels" . | indent 4 }}
@@ -57,7 +57,7 @@ subjects:
{{- end }}
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
{{ include "kanister-operator.helmLabels" . | indent 4 }}
