From 47421c89cad7cf8c776712e03cee816e93697018 Mon Sep 17 00:00:00 2001 From: Chotiwat Chawannakul Date: Thu, 5 Jan 2023 17:03:17 -0800 Subject: [PATCH] Update rbac API version to support k8s 1.22 or newer (#4) * update rbac api version to support k8s 1.22 or newer * bump chart version --- helm/draino/Chart.yaml | 2 +- helm/draino/templates/clusterrole.yaml | 2 +- helm/draino/templates/clusterrolebinding.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/draino/Chart.yaml b/helm/draino/Chart.yaml index 560b0cf4..910d7176 100644 --- a/helm/draino/Chart.yaml +++ b/helm/draino/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 description: draino chart name: draino -version: 0.1.0 +version: 0.2.0 diff --git a/helm/draino/templates/clusterrole.yaml b/helm/draino/templates/clusterrole.yaml index bed394fa..fa86de17 100644 --- a/helm/draino/templates/clusterrole.yaml +++ b/helm/draino/templates/clusterrole.yaml @@ -1,5 +1,5 @@ {{- if .Values.rbac.create -}} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: {{ include "draino.fullname" . }} diff --git a/helm/draino/templates/clusterrolebinding.yaml b/helm/draino/templates/clusterrolebinding.yaml index d1836677..ca966fe3 100644 --- a/helm/draino/templates/clusterrolebinding.yaml +++ b/helm/draino/templates/clusterrolebinding.yaml @@ -1,5 +1,5 @@ {{- if .Values.rbac.create -}} -apiVersion: rbac.authorization.k8s.io/v1beta1 +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: {{ include "draino.fullname" . }}