Skip to content

Commit

Permalink
fix(SILVA-529): setting correct oracle connection info
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj authored Nov 7, 2024
1 parent 29858c2 commit 24b8baa
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
-p AWS_ACCESS_KEY_SECRET='${{ secrets.AWS_ACCESS_KEY_SECRET }}'
-p ORACLE_DB_USER=${{ secrets.DB_USER }}
-p ORACLE_DB_PASSWORD='${{ secrets.ORACLE_DB_PASSWORD }}'
-p ORACLE_DB_HOST='${{ secrets.ORACLE_DB_HOST }}'
-p ORACLE_DB_SERVICE='${{ secrets.ORACLE_DB_SERVICE }}'
-p POSTGRES_DB_PASSWORD='${{ secrets.POSTGRES_DB_PASSWORD }}'
-p FORESTCLIENTAPI_KEY='${{ secrets.FORESTCLIENTAPI_KEY }}'
-p VITE_USER_POOLS_WEB_CLIENT_ID=${{ vars.VITE_USER_POOLS_WEB_CLIENT_ID }}
Expand Down Expand Up @@ -104,6 +106,8 @@ jobs:
-p AWS_ACCESS_KEY_SECRET='${{ secrets.AWS_ACCESS_KEY_SECRET }}'
-p ORACLE_DB_USER=${{ secrets.DB_USER }}
-p ORACLE_DB_PASSWORD='${{ secrets.ORACLE_DB_PASSWORD }}'
-p ORACLE_DB_HOST='${{ secrets.ORACLE_DB_HOST }}'
-p ORACLE_DB_SERVICE='${{ secrets.ORACLE_DB_SERVICE }}'
-p POSTGRES_DB_PASSWORD='${{ secrets.POSTGRES_DB_PASSWORD }}'
-p FORESTCLIENTAPI_KEY='${{ secrets.FORESTCLIENTAPI_KEY }}'
-p VITE_USER_POOLS_WEB_CLIENT_ID=${{ vars.VITE_USER_POOLS_WEB_CLIENT_ID }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
-p AWS_ACCESS_KEY_SECRET='${{ secrets.AWS_ACCESS_KEY_SECRET }}'
-p ORACLE_DB_USER=${{ secrets.DB_USER }}
-p ORACLE_DB_PASSWORD='${{ secrets.ORACLE_DB_PASSWORD }}'
-p ORACLE_DB_HOST='${{ secrets.ORACLE_DB_HOST }}'
-p ORACLE_DB_SERVICE='${{ secrets.ORACLE_DB_SERVICE }}'
-p POSTGRES_DB_PASSWORD='${{ secrets.POSTGRES_DB_PASSWORD }}'
-p FORESTCLIENTAPI_KEY='${{ secrets.FORESTCLIENTAPI_KEY }}'
-p VITE_USER_POOLS_WEB_CLIENT_ID=${{ vars.VITE_USER_POOLS_WEB_CLIENT_ID }}
Expand Down
15 changes: 12 additions & 3 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ objects:
imagePullPolicy: Always
env:
- name: ORACLEDB_HOST
value: ${DATABASE_HOST}
valueFrom:
secretKeyRef:
name: ${NAME}-${ZONE}-${COMPONENT}
key: oracle-host
- name: ORACLEDB_SECRET
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -173,11 +176,17 @@ objects:
- name: RESULTS_ENV_OPENSEARCH
value: ${RESULTS_ENV_OPENSEARCH}
- name: DATABASE_HOST
value: ${DATABASE_HOST}
valueFrom:
secretKeyRef:
name: ${NAME}-${ZONE}-${COMPONENT}
key: oracle-host
- name: DATABASE_PORT
value: ${DATABASE_PORT}
- name: SERVICE_NAME
value: ${SERVICE_NAME}
valueFrom:
secretKeyRef:
name: ${NAME}-${ZONE}-${COMPONENT}
key: oracle-service
- name: AWS_COGNITO_ISSUER_URI
value: ${AWS_COGNITO_ISSUER_URI}
- name: DASHBOARD_JOB_IDIR_USERS
Expand Down
8 changes: 8 additions & 0 deletions common/openshift.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ parameters:
- name: ORACLE_DB_PASSWORD
description: Oracle database password for API
required: true
- name: ORACLE_DB_HOST
description: Oracle database hostname
required: true
- name: ORACLE_DB_SERVICE
description: Oracle database service name
required: true
- name: ORACLEDB_SECRET
description: Oracle database keystore secret/password
value: changeit
Expand Down Expand Up @@ -65,6 +71,8 @@ objects:
oracle-user: ${ORACLE_DB_USER}
oracle-password: ${ORACLE_DB_PASSWORD}
oracle-secret: ${ORACLEDB_SECRET}
oracle-service: ${ORACLE_DB_SERVICE}
oracle-host: ${ORACLE_DB_HOST}
forest-client-api-key: ${FORESTCLIENTAPI_KEY}
- apiVersion: v1
kind: Secret
Expand Down

0 comments on commit 24b8baa

Please sign in to comment.