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/23 17:24:39 UTC

[incubator-sdap-nexus] branch new-webapp-yml created (now 949fd27)

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

eamonford pushed a change to branch new-webapp-yml
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git.


      at 949fd27  new webapp yaml

This branch includes the following new commits:

     new 949fd27  new webapp yaml

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-sdap-nexus] 01/01: new webapp yaml

Posted by ea...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a commit to branch new-webapp-yml
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit 949fd278c96077110dffe605b979b45a7918f367
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Wed Sep 23 10:24:23 2020 -0700

    new webapp yaml
---
 helm/templates/webapp.yaml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/helm/templates/webapp.yaml b/helm/templates/webapp.yaml
index 2c08bf3..3eb5715 100644
--- a/helm/templates/webapp.yaml
+++ b/helm/templates/webapp.yaml
@@ -1,3 +1,4 @@
+{{ if .Values.webapp.enabled }}
 apiVersion: "sparkoperator.k8s.io/v1beta2"
 kind: SparkApplication
 metadata:
@@ -9,6 +10,9 @@ spec:
   image: {{ .Values.webapp.distributed.image }}
   imagePullPolicy: Always 
   mainApplicationFile: local:///incubator-sdap-nexus/analysis/webservice/webapp.py
+  arguments:
+    - --cassandra-host=sdap-cassandra
+    - --solr-host=http://sdap-solr:8983
   sparkVersion: "2.4.4"
   restartPolicy:
     type: OnFailure
@@ -41,4 +45,5 @@ spec:
   - name: webapp
     protocol: TCP
     port: 8083
-    targetPort: 8083
\ No newline at end of file
+    targetPort: 8083
+{{ end }}
\ No newline at end of file