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
6 changes: 3 additions & 3 deletions api/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ endpoint:
program_requirement_codes:
url: ${GRAD_PROGRAM_API}api/v1/program/programrequirementcode
gradalgorithm-api:
gradalgorithm: ${GRAD_ALGORITHM_API}api/v1/graduatestudent?studentID=%s&gradProgram=%s
projectedgradalgorithm: ${GRAD_ALGORITHM_API}api/v1/graduatestudent?studentID=%s&gradProgram=%s&projected=%b
hypotheticalgradalgorithm: ${GRAD_ALGORITHM_API}api/v1/graduatestudent?studentID=%s&gradProgram=%s&hypotheticalGradYear=%s
gradalgorithm: ${GRAD_ALGORITHM_API}api/${ALGORITHM_API_VERSION}/graduatestudent?studentID=%s&gradProgram=%s
projectedgradalgorithm: ${GRAD_ALGORITHM_API}api/${ALGORITHM_API_VERSION}/graduatestudent?studentID=%s&gradProgram=%s&projected=%b
hypotheticalgradalgorithm: ${GRAD_ALGORITHM_API}api/${ALGORITHM_API_VERSION}/graduatestudent?studentID=%s&gradProgram=%s&hypotheticalGradYear=%s
grad-graduation-report-api:
update-grad-student-report:
url: ${GRAD_GRADUATION_REPORT_API}api/v1/graduationreports/studentreport?isGraduated=%s
Expand Down
9 changes: 9 additions & 0 deletions tools/config/update-configmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ PARSER_CONFIG="
###########################################################
#Setup for config-maps
###########################################################

if [ "$ENV" == "prod" ]
then
ALGORITHM_API_VERSION="v1"
else
ALGORITHM_API_VERSION="v2"
fi

echo Creating config map "$APP_NAME"-config-map
oc create -n "$GRAD_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map \
--from-literal=APP_LOG_LEVEL="$APP_LOG_LEVEL" \
Expand All @@ -63,6 +71,7 @@ oc create -n "$GRAD_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map \
--from-literal=GRAD_TRAX_API="http://educ-grad-trax-api.$GRAD_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=KEYCLOAK_TOKEN_URL="https://soam-$envValue.apps.silver.devops.gov.bc.ca/" \
--from-literal=PEN_API="http://student-api-master.$COMMON_NAMESPACE-$envValue.svc.cluster.local:8080/" \
--from-literal=ALGORITHM_API_VERSION=$ALGORITHM_API_VERSION \
--dry-run=client -o yaml | oc apply -f -
echo

Expand Down