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/09/17 17:47:04 UTC

[incubator-sdap-nexus] branch bug_fixes updated: 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


The following commit(s) were added to refs/heads/bug_fixes by this push:
     new b575136  Only create rbac if configmap disabled
b575136 is described below

commit b57513697aecb46b790a1250abfd25d00f93ec7e
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 }}