You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/11/15 02:51:59 UTC

[airflow] 16/32: fix pod launcher rolebinding in helm chart (#11675)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 6d8ec84a2e854189de9df167b726bb45127e1e46
Author: FloChehab <fl...@gmail.com>
AuthorDate: Tue Oct 20 23:31:37 2020 +0200

    fix pod launcher rolebinding in helm chart (#11675)
    
    * Followup to #11034
    * Was not referencing the correct kind of resources if multiNamespaceMode = False
    
    (cherry picked from commit 3391c90247c7f34687ba33a459aba8ea79517604)
---
 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 a3eab66..f258de7 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 }}