Skip to content

Commit

Permalink
add extra volumes to email cronjobs (#405)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit authored Feb 4, 2024
1 parent 1565695 commit facd520
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/policy-reporter/templates/cronjob-summary-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
mountPath: /app/config.yaml
subPath: config.yaml
readOnly: true
{{- with .Values.extraVolumes.volumeMounts }}
{{ toYaml . | nindent 14 | trim }}
{{- end }}
{{- if .Values.emailReports.smtp.secret }}
env:
- name: EMAIL_REPORTS_SMTP_HOST
Expand Down Expand Up @@ -115,6 +118,9 @@ spec:
secret:
secretName: {{ include "policyreporter.fullname" . }}-config-email-reports
optional: true
{{- with .Values.extraVolumes.volumes }}
{{ toYaml . | nindent 10 | trim }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
mountPath: /app/config.yaml
subPath: config.yaml
readOnly: true
{{- with .Values.extraVolumes.volumeMounts }}
{{ toYaml . | nindent 14 | trim }}
{{- end }}
{{- if .Values.emailReports.smtp.secret }}
env:
- name: EMAIL_REPORTS_SMTP_HOST
Expand Down Expand Up @@ -115,6 +118,9 @@ spec:
secret:
secretName: {{ include "policyreporter.fullname" . }}-config-email-reports
optional: true
{{- with .Values.extraVolumes.volumes }}
{{ toYaml . | nindent 10 | trim }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit facd520

Please sign in to comment.