This is an automated email from the ASF dual-hosted git repository.
nchung pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
The following commit(s) were added to refs/heads/master by this push:
new 2d7e962 SDAP-228 Add option to enable/disable root webpage in helm
chart (#97)
2d7e962 is described below
commit 2d7e9621c332d6870fec0f95c7bb9f3a33cd0660
Author: Eamon Ford <[email protected]>
AuthorDate: Thu Mar 19 17:30:21 2020 -0700
SDAP-228 Add option to enable/disable root webpage in helm chart (#97)
Co-authored-by: Eamon Ford <[email protected]>
---
helm/Chart.yaml | 2 +-
helm/templates/ingress.yaml | 2 ++
helm/templates/root-webpage.yaml | 3 +++
helm/values.yaml | 3 +++
4 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/helm/Chart.yaml b/helm/Chart.yaml
index 9c9e509..b861805 100644
--- a/helm/Chart.yaml
+++ b/helm/Chart.yaml
@@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "0.1.3"
description: Science Data Analytics Platform
name: nexus
-version: 0.1.9
+version: 0.1.10
diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml
index bd7a674..c4ccd80 100644
--- a/helm/templates/ingress.yaml
+++ b/helm/templates/ingress.yaml
@@ -13,10 +13,12 @@ spec:
rules:
- http:
paths:
+ {{ if .Values.rootWebpage.enabled }}
- path: /
backend:
serviceName: root-webpage
servicePort: http
+ {{ end }}
- path: /nexus/?(.*)
backend:
serviceName: nexus-webapp
diff --git a/helm/templates/root-webpage.yaml b/helm/templates/root-webpage.yaml
index 98834cb..c55b313 100644
--- a/helm/templates/root-webpage.yaml
+++ b/helm/templates/root-webpage.yaml
@@ -1,3 +1,5 @@
+
+{{ if .Values.rootWebpage.enabled }}
apiVersion: v1
kind: Service
metadata:
@@ -40,3 +42,4 @@ spec:
done
name: root-webpage
restartPolicy: Always
+{{ end }}
\ No newline at end of file
diff --git a/helm/values.yaml b/helm/values.yaml
index f5258d2..6be14b9 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -2,6 +2,9 @@
storageClass: hostpath
+rootWebpage:
+ enabled: true
+
webapp:
distributed:
image: nexusjpl/nexus-webapp:distributed.0.1.3