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
4 changes: 2 additions & 2 deletions charts/thub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.7.0
version: 1.7.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -25,7 +25,7 @@ dependencies:
- name: lms-data-service
version: 1.5.0
- name: ojt
version: 1.4.11
version: 1.4.12
- name: user-service
version: 1.3.2

Expand Down
2 changes: 1 addition & 1 deletion charts/thub/charts/ojt/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.4.11
version: 1.4.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
7 changes: 7 additions & 0 deletions charts/thub/charts/ojt/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ Create the name of the Grails datasource configmap
{{ include "ojt.name" . }}-datasource-config
{{- end }}

{{/*
Create the name of the OJT application settings configmap
*/}}
{{- define "ojt.ojtConfigmapName" -}}
{{ include "ojt.name" . }}-ojt-app-settings-config
{{- end }}

{{/*
Create the name of the CronJob learning-history-scheduler-job
*/}}
Expand Down
2 changes: 2 additions & 0 deletions charts/thub/charts/ojt/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ spec:
name: {{ .Values.global.activemqBrokerConfigMapName }}
- configMapRef:
name: {{ .Values.global.sharedSettingsConfigMapName }}
- configMapRef:
name: {{ include "ojt.ojtConfigmapName" . }}
# The keycloak ConfigMaps are defined in the keycloak-config chart
- configMapRef:
name: keycloak-shared-config
Expand Down
15 changes: 15 additions & 0 deletions charts/thub/charts/ojt/templates/ojt-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This will have different values for each client/namespace
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "ojt.ojtConfigmapName" . }}
labels:
{{- include "ojt.labels" . | nindent 4 }}
annotations:
description: >
Contains configuration settings specifically for the OJT Grails application,
which will be supplied to the OJT Grails application as environment variables.
data:
{{- if .Values.mail.password }}
grails.mail.password: {{ .Values.mail.password | quote }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/thub/charts/ojt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ tolerations: []

affinity: {}

mail:
# "App password" for OJT application to send email from the ojt@hc-labs.com account
password: ""

learningHistorySchedulerJob:
enabled: true
# Run every 30 minutes
Expand Down
3 changes: 3 additions & 0 deletions charts/thub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ ojt:
port: http
initialDelaySeconds: 40
timeoutSeconds: 3
mail:
# "App password" for OJT application to send email from the ojt@hc-labs.com account
password: ""
learningHistorySchedulerJob:
enabled: true
# Run every 30 minutes
Expand Down