Skip to content

Commit e5ec9d0

Browse files
committed
WIP: add values for OJT builds with SSO redirects
1 parent 20b9cf1 commit e5ec9d0

File tree

13 files changed

+48
-5
lines changed

13 files changed

+48
-5
lines changed

charts/thub/Chart.yaml

Lines changed: 3 additions & 3 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.8.9
9+
version: 1.9.0
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
@@ -23,9 +23,9 @@ dependencies:
2323
- name: keycloak-config
2424
version: 0.1.1
2525
- name: lms-data-service
26-
version: 1.6.1
26+
version: 1.7.0
2727
- name: ojt
28-
version: 1.5.6
28+
version: 1.6.0
2929
- name: user-service
3030
version: 1.3.5
3131

charts/thub/charts/keycloak-config/templates/keycloak-configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ data:
3333
grails.plugin.springsecurity.rest.keycloak.key: {{ .Values.clientId | quote }}
3434
# Username for an admin of this realm. Password is defined in keycloak-realm-secret
3535
grails.plugin.springsecurity.rest.keycloak.realmAdminUsername: {{ required "realmAdminUsername cannot be emtpy" .Values.realmAdminUsername | quote }}
36+
# The desired scopes when requesting an access token. This is a space seperated list.
37+
grails.plugin.springsecurity.rest.keycloak.scopes: {{ .Values.scopes | quote }}
3638
{{- end }}

charts/thub/charts/keycloak-config/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ databasePassword: ""
1515
realmName: ""
1616
clientId: "ojt"
1717
clientSecret: ""
18+
# The desired scopes when requesting an access token. This is a space seperated list.
19+
scopes: "email profile"
1820
# Credentials for the admin of the Keycloak server (master realm)
1921
masterAdminUsername: ""
2022
masterAdminPassword: ""

charts/thub/charts/lms-data-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.6.1
10+
version: 1.7.0
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
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This will have different values for each client/namespace
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ include "lms-data-service.lmsDataServiceConfigmapName" . }}
6+
labels:
7+
{{- include "lms-data-service.labels" . | nindent 4 }}
8+
annotations:
9+
description: >
10+
Contains configuration settings specifically for the LMS Data Service Grails application,
11+
which will be supplied to the LMS Data Service Grails application as environment variables.
12+
data:
13+
hclabs.lmsDataService.loginUsingSso: {{ .Values.loginUsingSso | quote }}

charts/thub/charts/lms-data-service/templates/_helpers.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ Create the name of the encryption configmap
7575
{{ include "lms-data-service.name" . }}-encryption-config
7676
{{- end }}
7777

78+
{{/*
79+
Create the name of the LMS Data Service configmap
80+
*/}}
81+
{{- define "lms-data-service.lmsDataServiceConfigmapName" -}}
82+
{{ include "lms-data-service.name" . }}-application-config
83+
{{- end }}
84+
7885
{{/*
7986
Create the name of the SFTP configmap
8087
*/}}

charts/thub/charts/lms-data-service/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ spec:
8989
- configMapRef:
9090
name: {{ include "lms-data-service.workdayConfigmapName" . }}
9191
{{- end }}
92+
- configMapRef:
93+
name: {{ include "lms-data-service.lmsDataServiceConfigmapName" . }}
9294
# The keycloak ConfigMaps are defined in the keycloak-config chart
9395
- configMapRef:
9496
name: keycloak-shared-config

charts/thub/charts/lms-data-service/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ workday:
134134
# Specify API version here to override the default defined by the LMS Data Service application.yml
135135
apiVersion: ""
136136

137+
# Boolean that when true, users will login to LMS Data Service using a SSO authentication provider
138+
# with a redirect URL rather than entering their their credentials on the LMS Data Service web app login page.
139+
loginUsingSso: true
140+
137141
assignedItemsSchedulerJob:
138142
enabled: true
139143
# Run on the 15th minute of every hour from 14 thru 23 and 5

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.5.6
10+
version: 1.6.0
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/ojt-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ data:
1313
{{- if .Values.mail.password }}
1414
grails.mail.password: {{ .Values.mail.password | quote }}
1515
{{- end }}
16+
hclabs.ojt.loginUsingSso: {{ .Values.loginUsingSso | quote }}

0 commit comments

Comments
 (0)