Skip to content

Commit 4daa4b3

Browse files
committed
Add configmap for User Service mail config
1 parent 31265a4 commit 4daa4b3

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.4
9+
version: 1.7.5
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
@@ -27,7 +27,7 @@ dependencies:
2727
- name: ojt
2828
version: 1.4.13
2929
- name: user-service
30-
version: 1.3.2
30+
version: 1.3.3
3131

3232
sources:
3333
- https://github.com/hypercision/masterdata-services

charts/thub/charts/user-service/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.3.2
10+
version: 1.3.3
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/user-service/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,10 @@ Create the name of the Grails datasource configmap
6767
{{- define "user-service.datasourceConfigmapName" -}}
6868
{{ include "user-service.name" . }}-datasource-config
6969
{{- end }}
70+
71+
{{/*
72+
Create the name of the User Service application settings configmap
73+
*/}}
74+
{{- define "user-service.userServiceConfigmapName" -}}
75+
{{ include "user-service.name" . }}-user-service-settings-config
76+
{{- end }}

charts/thub/charts/user-service/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ spec:
7373
name: {{ .Values.global.activemqBrokerConfigMapName }}
7474
- configMapRef:
7575
name: {{ .Values.global.sharedSettingsConfigMapName }}
76+
- configMapRef:
77+
name: {{ include "user-service.userServiceConfigmapName" . }}
7678
# The keycloak ConfigMaps are defined in the keycloak-config chart
7779
- configMapRef:
7880
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 "user-service.userServiceConfigmapName" . }}
6+
labels:
7+
{{- include "user-service.labels" . | nindent 4 }}
8+
annotations:
9+
description: >
10+
Contains configuration settings specifically for the User Service Grails application,
11+
which will be supplied to the User Service 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/user-service/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ nodeSelector: {}
107107
tolerations: []
108108

109109
affinity: {}
110+
111+
mail:
112+
# "App password" for User Service application to send email from the ojt@hc-labs.com account
113+
password: ""

charts/thub/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ user-service:
283283
port: http
284284
initialDelaySeconds: 40
285285
timeoutSeconds: 3
286+
mail:
287+
# "App password" for User Service application to send email from the ojt@hc-labs.com account
288+
password: ""
286289

287290
keycloak-config:
288291
# Whether or not to create the realm ConfigMap

0 commit comments

Comments
 (0)