Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#293 facilitate gitops better through sourced secrets in setup Chart #295

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deploy/helm/sumologic/templates/setup/setup-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ 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 }}
- name: SUMOLOGIC_ACCESSKEY
value: {{ required "A valid .Values.sumologic.accessKey entry required!" .Values.sumologic.accessKey }}
- name: SUMOLOGIC_BASE_URL
value: {{ .Values.sumologic.endpoint }}
{{- end }}
{{ end }}
{{- end }}
3 changes: 3 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""

Expand Down