From e6619c7a47a0357c3dceb708afac522542b00b44 Mon Sep 17 00:00:00 2001 From: FloChehab Date: Tue, 20 Oct 2020 23:31:37 +0200 Subject: [PATCH] fix pod launcher rolebinding in helm chart (#11675) * Followup to #11034 * Was not referencing the correct kind of resources if multiNamespaceMode = False --- chart/templates/rbac/pod-launcher-rolebinding.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chart/templates/rbac/pod-launcher-rolebinding.yaml b/chart/templates/rbac/pod-launcher-rolebinding.yaml index c8ddf9e713276f..849f32dcbe711b 100644 --- a/chart/templates/rbac/pod-launcher-rolebinding.yaml +++ b/chart/templates/rbac/pod-launcher-rolebinding.yaml @@ -42,7 +42,11 @@ metadata: {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io +{{- if .Values.multiNamespaceMode }} kind: ClusterRole +{{- else }} + kind: Role +{{- end }} name: {{ .Release.Name }}-pod-launcher-role subjects: {{- if $grantScheduler }}