From bdf10ecfddf1639f3b13acdda557785e9b5b0bd7 Mon Sep 17 00:00:00 2001 From: my-git9 Date: Tue, 22 Nov 2022 22:07:53 +0800 Subject: [PATCH] [bitnami/argo-workflows] fix apiversion hardcode ClusterRoleBinding (#13616) Signed-off-by: xin.li Signed-off-by: xin.li --- bitnami/argo-workflows/Chart.yaml | 2 +- .../templates/controller/clusterrolebinding.yaml | 4 ++-- .../argo-workflows/templates/server/clusterrolebinding.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/argo-workflows/Chart.yaml b/bitnami/argo-workflows/Chart.yaml index dc0a8a18d..624289b34 100644 --- a/bitnami/argo-workflows/Chart.yaml +++ b/bitnami/argo-workflows/Chart.yaml @@ -35,4 +35,4 @@ sources: - https://github.com/bitnami/containers/tree/main/bitnami/argo-workflow-controller - https://github.com/bitnami/containers/tree/main/bitnami/argo-workflow-exec - https://argoproj.github.io/workflows/ -version: 5.0.0 +version: 5.0.1 diff --git a/bitnami/argo-workflows/templates/controller/clusterrolebinding.yaml b/bitnami/argo-workflows/templates/controller/clusterrolebinding.yaml index 5ecb67d76..e58e85b4c 100644 --- a/bitnami/argo-workflows/templates/controller/clusterrolebinding.yaml +++ b/bitnami/argo-workflows/templates/controller/clusterrolebinding.yaml @@ -1,5 +1,5 @@ {{- if .Values.controller.rbac.create }} -apiVersion: rbac.authorization.k8s.io/v1 +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} {{- if .Values.rbac.singleNamespace }} kind: RoleBinding {{ else }} @@ -43,7 +43,7 @@ subjects: {{- if .Values.controller.clusterWorkflowTemplates.enabled }} --- -apiVersion: rbac.authorization.k8s.io/v1 +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} kind: ClusterRoleBinding metadata: name: {{ include "argo-workflows.controller.fullname.namespace" . }}-cluster-template diff --git a/bitnami/argo-workflows/templates/server/clusterrolebinding.yaml b/bitnami/argo-workflows/templates/server/clusterrolebinding.yaml index 8c8ee717b..db9f85f0b 100644 --- a/bitnami/argo-workflows/templates/server/clusterrolebinding.yaml +++ b/bitnami/argo-workflows/templates/server/clusterrolebinding.yaml @@ -1,5 +1,5 @@ {{- if and .Values.server.rbac.create .Values.server.enabled -}} -apiVersion: rbac.authorization.k8s.io/v1 +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} {{- if .Values.rbac.singleNamespace }} kind: RoleBinding {{ else }} @@ -32,7 +32,7 @@ subjects: {{- if .Values.server.clusterWorkflowTemplates.enabled }} --- -apiVersion: rbac.authorization.k8s.io/v1 +apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }} kind: ClusterRoleBinding metadata: name: {{ include "argo-workflows.server.fullname.namespace" . }}-cluster-template