Skip to content

Commit 214b241

Browse files
Merge pull request #282 from bcgov/develop
add support for adminGroup to request api docker container and helm d…
2 parents bd93186 + 28adbb5 commit 214b241

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

helm/ocwa/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ request-api:
394394
formioUsername: "[email protected]"
395395
formioPassword: "CHANGEME"
396396
orgAttribute: "businessCategory"
397+
adminGroup: "admin"
397398

398399

399400
resources: {}

microservices/requestApi/entrypoint.sh

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ printf "\"webhookSecret\": \"${WEBHOOK_API_KEY}\",\n" >> ./config/default.json
6767

6868
printf "\"emailOnInitialSubmit\": ${EMAIL_ON_SUBMIT},\n" >> ./config/default.json
6969
printf "\"orgAttribute\": \"${ORG_ATTRIBUTE}\",\n" >> ./config/default.json
70+
printf "\"adminGroup\": \"${ADMIN_GROUP}\",\n" >> ./config/default.json
7071

7172
printf "\"user\": {\n" >> ./config/default.json
7273
printf "\"idField\": \"${USER_ID_FIELD}\",\n" >> ./config/default.json

microservices/requestApi/helm/request-api/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ spec:
181181

182182
- name: ORG_ATTRIBUTE
183183
value: "{{ .Values.orgAttribute }}"
184+
185+
- name: ADMIN_GROUP
186+
value: "{{ .Values.adminGroup }}"
184187

185188
ports:
186189
- name: http

microservices/requestApi/helm/request-api/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ formioUrl: "http://ocwa-formio.ocwa"
109109
formioUsername: "[email protected]"
110110
formioPassword: "CHANGEME"
111111
orgAttribute: "businessCategory"
112+
adminGroup: "admin"
112113

113114
resources: {}
114115
# If you want to specify resources, uncomment the following

terraform/ocwa_request_api.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ resource "docker_container" "ocwa_request_api" {
7272
"FORMIO_URL=http://ocwa_formio:3001",
7373
7474
"FORMIO_PASSWORD=CHANGEME",
75-
"ORG_ATTRIBUTE=businessCategory"
75+
"ORG_ATTRIBUTE=businessCategory",
76+
"ADMIN_GROUP=admin"
7677
]
7778
}
7879

0 commit comments

Comments
 (0)