You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by ea...@apache.org on 2020/11/25 19:12:07 UTC
[incubator-sdap-nexus] 08/12: Only create rbac if configmap disabled
This is an automated email from the ASF dual-hosted git repository.
eamonford pushed a commit to branch bug_fixes
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
commit 9f14e53c37cb3fd9f32ac71fb6d1ef267d24a3b5
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Thu Sep 17 10:46:47 2020 -0700
Only create rbac if configmap disabled
---
helm/templates/config-operator-rbac.yml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/helm/templates/config-operator-rbac.yml b/helm/templates/config-operator-rbac.yml
index 6626b0b..b295430 100644
--- a/helm/templates/config-operator-rbac.yml
+++ b/helm/templates/config-operator-rbac.yml
@@ -1,3 +1,5 @@
+{{ if .Values.ingestion.enabled }}
+{{ if not .Values.ingestion.collections.configMap }}
apiVersion: v1
kind: ServiceAccount
metadata:
@@ -17,5 +19,6 @@ subjects:
- kind: ServiceAccount
name: config-operator
namespace: {{ .Release.Namespace }}
-
+{{ end }}
+{{ end }}