Skip to content
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
14 changes: 14 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ data:
bootstrap.js: |
{{- .Values.bootstrap.content | nindent 4 }}
{{- end }}
{{- if .Values.emailTemplates.enabled }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "control-layer.fullname" . }}-email-templates
labels:
{{- include "control-layer.labels" . | nindent 4 }}
data:
{{- range $name, $content := .Values.emailTemplates.files }}
{{ $name }}: |
{{- $content | nindent 4 }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,23 @@ spec:
mountPath: /app/config.yaml
subPath: control-layer-config.yaml
readOnly: true
{{- if .Values.emailTemplates.enabled }}
- name: email-templates
mountPath: {{ .Values.emailTemplates.mountPath }}
readOnly: true
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: config
configMap:
name: {{ include "control-layer.fullname" . }}-config
{{- if .Values.emailTemplates.enabled }}
- name: email-templates
configMap:
name: {{ include "control-layer.fullname" . }}-email-templates
{{- end }}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
10 changes: 10 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,16 @@ bootstrap:
enabled: false
content: ""

# Email templates configuration
# Files are mounted as a directory into the container
emailTemplates:
enabled: false
mountPath: /app/email-templates
files: {}
# files:
# batch_complete.html: "<html>...</html>"
# first_batch.html: "<html>...</html>"

# Scouter Configuration
# When enabled, deploys the scouter collector as a separate deployment from the control layer.
# Scouter needs network access to the control-layer admin/monitoring endpoints.
Expand Down