diff --git a/deploy/helm/sumologic/templates/setup/setup-job.yaml b/deploy/helm/sumologic/templates/setup/setup-job.yaml index 60bc41d8ad..20cefff487 100644 --- a/deploy/helm/sumologic/templates/setup/setup-job.yaml +++ b/deploy/helm/sumologic/templates/setup/setup-job.yaml @@ -29,6 +29,10 @@ spec: volumeMounts: - name: setup mountPath: /etc/terraform + {{- if .Values.sumologic.envFromSecret }} + envFrom: + - {{ .Values.sumologic.envFromSecret }} + {{ else }} env: - name: SUMOLOGIC_ACCESSID value: {{ required "A valid .Values.sumologic.accessId entry required!" .Values.sumologic.accessId }} @@ -36,4 +40,5 @@ spec: value: {{ required "A valid .Values.sumologic.accessKey entry required!" .Values.sumologic.accessKey }} - name: SUMOLOGIC_BASE_URL value: {{ .Values.sumologic.endpoint }} -{{- end }} \ No newline at end of file + {{ end }} +{{- end }} diff --git a/deploy/helm/sumologic/values.yaml b/deploy/helm/sumologic/values.yaml index 72abd3e966..916cc634c6 100644 --- a/deploy/helm/sumologic/values.yaml +++ b/deploy/helm/sumologic/values.yaml @@ -34,6 +34,9 @@ sumologic: # If enabled, a pre-install hook will create Collector and Sources in Sumo Logic setupEnabled: true + # If enabled, accessId and accessKey will be sourced from Secret Name given + # envFromSecret: accessCredentials + # Sumo access ID #accessId: ""