Commit 7b8dea01 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Updated encyclopedia gui and the helm template to use global configuration file.

parent 59725148
Pipeline #77771 passed with stages
in 27 minutes and 17 seconds
Subproject commit 0fc6234876cfc91e84f95005aa41df6e6317a6ce
Subproject commit 40bd67030256126a66d623cc5a0568fcab06b294
......@@ -96,6 +96,24 @@ data:
"debug": {{ .Values.gui.debug }}
};
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "nomad.fullname" . }}-enc-conf-js
labels:
app.kubernetes.io/name: {{ include "nomad.name" . }}-enc-conf-js
helm.sh/chart: {{ include "nomad.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
data:
conf.js: |
window.nomadEnv = {
host: "https://{{ .Values.proxy.external.host }}{{ .Values.proxy.external.path }}",
userCookieDomain: ".{{ .Values.proxy.external.host }}",
guestUserToken: 'eyJhbGciOiJIUzI1NiIsImlhdCI6MTUyMzg4MDE1OSwiZXhwIjoxNjgxNTYwMTU5fQ.ey'+
'JpZCI6ImVuY2d1aSJ9.MsMWQa3IklH7cQTxRaIRSF9q8D_2LD5Fs2-irpWPTp4'
};
---
apiVersion: apps/v1
kind: Deployment
metadata:
......@@ -145,6 +163,10 @@ spec:
readOnly: true
subPath: env.js
name: gui-env-js
- mountPath: /app/dependencies/encyclopedia-gui/client/conf.js
readOnly: true
subPath: conf.js
name: enc-conf-js
env:
- name: NOMAD_SERVICE
value: "app"
......@@ -224,6 +246,9 @@ spec:
- name: gui-env-js
configMap:
name: {{ include "nomad.fullname" . }}-gui-env-js
- name: enc-conf-js
configMap:
name: {{ include "nomad.fullname" . }}-enc-conf-js
- name: public-volume
hostPath:
path: {{ .Values.volumes.public }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment