Skip to content

Commit

Permalink
Add more DB (#20)
Browse files Browse the repository at this point in the history
and update metabase version
  • Loading branch information
mishraomp authored Dec 6, 2023
1 parent 81505ab commit 6d1319c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/nr-metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.47.4
version: 0.47.9
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.47.4" # aligned with metabase version.
appVersion: "v0.47.9" # aligned with metabase version.
dependencies:
- name: metabase
condition: metabase.enabled
Expand Down
4 changes: 2 additions & 2 deletions charts/nr-metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ database:
nameOverride: ""
fullnameOverride: ""
image:
repository: ghcr.io/bcgov/quickstart-openshift/database
repository: ghcr.io/bcgov/nr-containers/postgres
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: 'prod'
tag: '15.5'
podAnnotations: {}
podSecurityContext: {}
securityContext: {}
Expand Down
9 changes: 7 additions & 2 deletions metabase/run_app.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/bash
DB_HOST_PORT_LIST=nrcdb01.bcgov:1543,nrcdb03.bcgov:1543,nrkdb01.bcgov:1543,nrkdb03.bcgov:1543
DB_HOST_PORT_ENV=${DB_HOST_PORT_ENV}
echo "DB_HOST_PORT_ENV is $DB_HOST_PORT_ENV"
if [ -z "$DB_HOST_PORT_ENV" ]; then
DB_HOST_PORT_ENV=nrcdb01.bcgov:1543,nrcdb03.bcgov:1543,nrkdb01.bcgov:1543,nrkdb03.bcgov:1543,nrcdb02.bcgov:1543,nrkdb02.bcgov:1543
fi
echo "DB_HOST_PORT_ENV is $DB_HOST_PORT_ENV"
echo "Adding certs"
IFS=','
read -ra DB_HOST_PORT_ARRAY <<< "${DB_HOST_PORT_LIST}"
read -ra DB_HOST_PORT_ARRAY <<< "${DB_HOST_PORT_ENV}"
for DB_HOST_PORT in "${DB_HOST_PORT_ARRAY[@]}"; do
IFS=':'
read -ra strarr <<<"${DB_HOST_PORT}"
Expand Down

0 comments on commit 6d1319c

Please sign in to comment.