pass the feed URL via env var rather than config map so that standalone Docker usage is simplified

This commit is contained in:
James Wilson
2021-08-14 11:32:48 +01:00
parent 502fd2e91a
commit 8793d0fd5b
5 changed files with 12 additions and 25 deletions
-7
View File
@@ -59,19 +59,12 @@ spec:
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
- name: env-config
mountPath: /usr/share/nginx/html/env-config.js
subPath: env-config.js
readOnly: true
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: nginx
configMap:
name: frontend-nginx
- name: env-config
configMap:
name: frontend-env-config
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
-10
View File
@@ -1,10 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: frontend-env-config
data:
env-config.js: |
window.process_env = {
SUBSTRATE_TELEMETRY_URL: "wss://feed.telemetry.parity-stg.parity.io/feed",
SUBSTRATE_TELEMETRY_SAMPLE: "",
}
+4 -1
View File
@@ -26,7 +26,10 @@ fullnameOverride: ""
envVars:
shard: {}
core: {}
frontend: {}
frontend:
# The frontend docker container makes this available to the UI,
# so that it knows where to look for feed information:
SUBSTRATE_TELEMETRY_URL: wss://feed.telemetry.parity-stg.parity.io/feed