From fabfa5ef8a86fa52bcab21d95fc1b804c5b9f217 Mon Sep 17 00:00:00 2001 From: Xiayang Wu Date: Fri, 29 Oct 2021 20:38:18 -0700 Subject: [PATCH] use .Values.serviceAccount.name for rolebinding Signed-off-by: Xiayang Wu --- keda/templates/11-keda-clusterrolebinding.yaml | 2 +- keda/templates/21-metrics-clusterrolebinding.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keda/templates/11-keda-clusterrolebinding.yaml b/keda/templates/11-keda-clusterrolebinding.yaml index e7b9d7e0..d019a458 100644 --- a/keda/templates/11-keda-clusterrolebinding.yaml +++ b/keda/templates/11-keda-clusterrolebinding.yaml @@ -12,6 +12,6 @@ roleRef: name: {{ .Values.operator.name }} subjects: - kind: ServiceAccount - name: {{ .Values.operator.name }} + name: {{ .Values.serviceAccount.name }} namespace: {{ .Release.Namespace }} {{- end -}} \ No newline at end of file diff --git a/keda/templates/21-metrics-clusterrolebinding.yaml b/keda/templates/21-metrics-clusterrolebinding.yaml index 57d2615e..f670c247 100644 --- a/keda/templates/21-metrics-clusterrolebinding.yaml +++ b/keda/templates/21-metrics-clusterrolebinding.yaml @@ -12,7 +12,7 @@ roleRef: name: system:auth-delegator subjects: - kind: ServiceAccount - name: {{ .Values.operator.name }} + name: {{ .Values.serviceAccount.name }} namespace: {{ .Release.Namespace }} --- apiVersion: rbac.authorization.k8s.io/v1 @@ -29,7 +29,7 @@ roleRef: name: extension-apiserver-authentication-reader subjects: - kind: ServiceAccount - name: {{ .Values.operator.name }} + name: {{ .Values.serviceAccount.name }} namespace: {{ .Release.Namespace }} --- apiVersion: rbac.authorization.k8s.io/v1