Skip to content

Commit 3d6e83e

Browse files
authored
Merge pull request #39 from hypercision/email
Add configmap for OJT mail config
2 parents ba6bbfd + ba6c5cb commit 3d6e83e

File tree

7 files changed

+34
-3
lines changed

7 files changed

+34
-3
lines changed

charts/thub/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type: application
66
# This is the chart version. This version number should be incremented each time you make changes
77
# to the chart and its templates, including the app version.
88
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9-
version: 1.7.0
9+
version: 1.7.1
1010

1111
# This is the version number of the application being deployed. This version number should be
1212
# incremented each time you make changes to the application. Versions are not expected to
@@ -25,7 +25,7 @@ dependencies:
2525
- name: lms-data-service
2626
version: 1.5.0
2727
- name: ojt
28-
version: 1.4.11
28+
version: 1.4.12
2929
- name: user-service
3030
version: 1.3.2
3131

charts/thub/charts/ojt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type: application
77
# This is the chart version. This version number should be incremented each time you make changes
88
# to the chart and its templates, including the app version.
99
# Versions are expected to follow Semantic Versioning (https://semver.org/)
10-
version: 1.4.11
10+
version: 1.4.12
1111

1212
# This is the version number of the application being deployed. This version number should be
1313
# incremented each time you make changes to the application. Versions are not expected to

charts/thub/charts/ojt/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ Create the name of the Grails datasource configmap
6868
{{ include "ojt.name" . }}-datasource-config
6969
{{- end }}
7070

71+
{{/*
72+
Create the name of the OJT application settings configmap
73+
*/}}
74+
{{- define "ojt.ojtConfigmapName" -}}
75+
{{ include "ojt.name" . }}-ojt-app-settings-config
76+
{{- end }}
77+
7178
{{/*
7279
Create the name of the CronJob learning-history-scheduler-job
7380
*/}}

charts/thub/charts/ojt/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ spec:
8484
name: {{ .Values.global.activemqBrokerConfigMapName }}
8585
- configMapRef:
8686
name: {{ .Values.global.sharedSettingsConfigMapName }}
87+
- configMapRef:
88+
name: {{ include "ojt.ojtConfigmapName" . }}
8789
# The keycloak ConfigMaps are defined in the keycloak-config chart
8890
- configMapRef:
8991
name: keycloak-shared-config
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This will have different values for each client/namespace
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ include "ojt.ojtConfigmapName" . }}
6+
labels:
7+
{{- include "ojt.labels" . | nindent 4 }}
8+
annotations:
9+
description: >
10+
Contains configuration settings specifically for the OJT Grails application,
11+
which will be supplied to the OJT Grails application as environment variables.
12+
data:
13+
{{- if .Values.mail.password }}
14+
grails.mail.password: {{ .Values.mail.password | quote }}
15+
{{- end }}

charts/thub/charts/ojt/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ tolerations: []
109109

110110
affinity: {}
111111

112+
mail:
113+
# "App password" for OJT application to send email from the ojt@hc-labs.com account
114+
password: ""
115+
112116
learningHistorySchedulerJob:
113117
enabled: true
114118
# Run every 30 minutes

charts/thub/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ ojt:
246246
port: http
247247
initialDelaySeconds: 40
248248
timeoutSeconds: 3
249+
mail:
250+
# "App password" for OJT application to send email from the ojt@hc-labs.com account
251+
password: ""
249252
learningHistorySchedulerJob:
250253
enabled: true
251254
# Run every 30 minutes

0 commit comments

Comments
 (0)