From 98dd4c1beeb852e724749106d3c70ae399f65a42 Mon Sep 17 00:00:00 2001 From: David Losada Carballo Date: Wed, 22 Jun 2022 13:41:36 +0200 Subject: [PATCH] platform-client: add some popular config variables --- charts/platform-client/Chart.yaml | 2 +- charts/platform-client/templates/client.yml | 12 ++++++++++++ charts/platform-client/values.yaml | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/charts/platform-client/Chart.yaml b/charts/platform-client/Chart.yaml index 62c9640..a0ce7f9 100644 --- a/charts/platform-client/Chart.yaml +++ b/charts/platform-client/Chart.yaml @@ -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 diff --git a/charts/platform-client/templates/client.yml b/charts/platform-client/templates/client.yml index 62db26b..d9edcf4 100644 --- a/charts/platform-client/templates/client.yml +++ b/charts/platform-client/templates/client.yml @@ -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 diff --git a/charts/platform-client/values.yaml b/charts/platform-client/values.yaml index 3446fed..5f6c199 100644 --- a/charts/platform-client/values.yaml +++ b/charts/platform-client/values.yaml @@ -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: