You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by tl...@apache.org on 2022/05/27 18:28:37 UTC

[incubator-sdap-nexus] 01/01: add configmap to the webapp, not tested

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

tloubrieu pushed a commit to branch sdap-388-proxy
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit 888b7a4368f77fa0a8d96818f593ab31128f04f2
Author: Thomas Loubrieu <lo...@jpl.nasa.gov>
AuthorDate: Fri May 27 11:28:20 2022 -0700

    add configmap to the webapp, not tested
---
 helm/templates/webapp.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/helm/templates/webapp.yml b/helm/templates/webapp.yml
index e82c225..063fe18 100644
--- a/helm/templates/webapp.yml
+++ b/helm/templates/webapp.yml
@@ -17,6 +17,10 @@ spec:
     - --cassandra-password={{ include "nexus.credentials.cassandra.password" . }}
     - --solr-host={{ include "nexus.urls.solr" . }}
   sparkVersion: "3.1.1"
+  volumes:
+    - name: collections-config-volume
+      configMap:
+        name: { { include "nexus.collectionsConfig.configmapName" . } }
   restartPolicy:
     type: OnFailure
     onFailureRetries: 10
@@ -24,10 +28,13 @@ spec:
     onSubmissionFailureRetries: 10
     onSubmissionFailureRetryInterval: 10
   driver:
+    volumeMounts:
+      - name: collections-config-volume
+          mountPath: { { include "nexus.collectionsConfig.mountPath" . } }
 {{ .Values.webapp.distributed.driver | toYaml | indent 4 }}
     labels:
       version: 3.1.1
-    serviceAccount: spark-serviceaccount
+  serviceAccount: spark-serviceaccount
   executor:
 {{ .Values.webapp.distributed.executor| toYaml | indent 4 }}
     labels: