Skip to content

Commit

Permalink
Merge pull request #282 from bcgov/develop
Browse files Browse the repository at this point in the history
add support for adminGroup to request api docker container and helm d…
  • Loading branch information
BrandonSharratt authored Feb 13, 2020
2 parents bd93186 + 28adbb5 commit 214b241
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions helm/ocwa/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ request-api:
formioUsername: "[email protected]"
formioPassword: "CHANGEME"
orgAttribute: "businessCategory"
adminGroup: "admin"


resources: {}
Expand Down
1 change: 1 addition & 0 deletions microservices/requestApi/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ printf "\"webhookSecret\": \"${WEBHOOK_API_KEY}\",\n" >> ./config/default.json

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

printf "\"user\": {\n" >> ./config/default.json
printf "\"idField\": \"${USER_ID_FIELD}\",\n" >> ./config/default.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ spec:

- name: ORG_ATTRIBUTE
value: "{{ .Values.orgAttribute }}"

- name: ADMIN_GROUP
value: "{{ .Values.adminGroup }}"

ports:
- name: http
Expand Down
1 change: 1 addition & 0 deletions microservices/requestApi/helm/request-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ formioUrl: "http://ocwa-formio.ocwa"
formioUsername: "[email protected]"
formioPassword: "CHANGEME"
orgAttribute: "businessCategory"
adminGroup: "admin"

resources: {}
# If you want to specify resources, uncomment the following
Expand Down
3 changes: 2 additions & 1 deletion terraform/ocwa_request_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ resource "docker_container" "ocwa_request_api" {
"FORMIO_URL=http://ocwa_formio:3001",
"[email protected]",
"FORMIO_PASSWORD=CHANGEME",
"ORG_ATTRIBUTE=businessCategory"
"ORG_ATTRIBUTE=businessCategory",
"ADMIN_GROUP=admin"
]
}

0 comments on commit 214b241

Please sign in to comment.