From 6c6843337e1242c7582310def729155164899935 Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Fri, 30 Aug 2024 15:19:03 +0530 Subject: [PATCH] feat(charts): add analytics ID and KEY envs to csi controller Signed-off-by: Niladri Halder --- deploy/helm/charts/templates/zfs-controller.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy/helm/charts/templates/zfs-controller.yaml b/deploy/helm/charts/templates/zfs-controller.yaml index 2654937ff..b4482edac 100644 --- a/deploy/helm/charts/templates/zfs-controller.yaml +++ b/deploy/helm/charts/templates/zfs-controller.yaml @@ -121,6 +121,14 @@ spec: value: "{{ if (not (hasKey .Values.analytics "installerType")) }}zfs-localpv-helm{{ else }}{{ .Values.analytics.installerType }}{{ end }}" - name: OPENEBS_IO_ENABLE_ANALYTICS value: "{{ .Values.analytics.enabled }}" + {{- if .Values.analytics.gaId }} + - name: GA_ID + value: {{ .Values.analytics.gaId | quote }} + {{- end }} + {{- if .Values.analytics.gaKey }} + - name: GA_KEY + value: {{ .Values.analytics.gaKey | quote }} + {{- end }} args : - "--endpoint=$(OPENEBS_CSI_ENDPOINT)" - "--plugin=$(OPENEBS_CONTROLLER_DRIVER)"