Skip to content

Commit

Permalink
platform-client: add some popular config variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Jun 22, 2022
1 parent 8a905cd commit 98dd4c1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/platform-client/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-client
version: 0.0.1-alpha.6
version: 0.0.1-alpha.7
icon: https://github.ushahidi.org/helm-charts/icon.png
12 changes: 12 additions & 0 deletions charts/platform-client/templates/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ spec:
env:
- name: BACKEND_URL
value: {{ .Values.backend_url }}
{{- if .Values.config.ga_key }}
- name: GA_KEY
value: {{ .Values.config.ga_key | quote }}
{{- end }}
{{- if .Values.config.gtm_container_id }}
- name: GTM_CONTAINER_ID
value: {{ .Values.config.gtm_container_id | quote }}
{{- end }}
{{- if .Values.config.intercom_appid }}
- name: INTERCOM_APPID
value: {{ .Values.config.intercom_appid | quote }}
{{- end }}
image: {{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
imagePullPolicy: Always
name: api
Expand Down
8 changes: 7 additions & 1 deletion charts/platform-client/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# there is no sensible default for this
# set to something like https://apihost.example.com
backend_url: ""
backend_url: ""

# other configuration values
config:
# gtm_container_id:
# ga_key:
# intercom_appid:

replicas: 1
limits:
Expand Down

0 comments on commit 98dd4c1

Please sign in to comment.