Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to test namespace #4089

Closed
wants to merge 9 commits into from
Closed
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
64 changes: 32 additions & 32 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Deploy PostGIS instance
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
EPHEMERAL_STORAGE=True BUCKET=gpdqha DATA_SIZE=5Gi WAL_SIZE=5Gi bash openshift/scripts/oc_provision_crunchy.sh ${SUFFIX} apply

build-web-image:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Configure
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
bash openshift/scripts/oc_provision_nats_server_config.sh ${SUFFIX} apply

deploy-dev:
Expand Down Expand Up @@ -148,81 +148,81 @@ jobs:
- name: Deploy API to Dev
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
MODULE_NAME=api SECOND_LEVEL_DOMAIN="apps.silver.devops.gov.bc.ca" VANITY_DOMAIN="${SUFFIX}-dev-psu.apps.silver.devops.gov.bc.ca" ENVIRONMENT="development" bash openshift/scripts/oc_deploy.sh ${SUFFIX} apply

## TODO: re-enable once crunchy is deployed: https://app.zenhub.com/workspaces/bcws---agile-psu-5e321393e038fba5bbe203b8/issues/gh/bcgov/wps/2340
- name: Hourly actuals cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
bash openshift/scripts/oc_provision_wfwx_hourly_actuals_cronjob.sh ${SUFFIX} apply

# - name: Noon forecasts cronjob
# shell: bash
# run: |
# oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
# oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
# bash openshift/scripts/oc_provision_wfwx_noon_forecasts_cronjob.sh ${SUFFIX} apply

- name: Environment Canada GDPS cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_ec_gdps_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_ec_gdps_cronjob.sh ${SUFFIX} apply

- name: Environment Canada HRDPS cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_ec_hrdps_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_ec_hrdps_cronjob.sh ${SUFFIX} apply

# - name: Environment Canada RDPS cronjob
# shell: bash
# run: |
# oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
# PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_ec_rdps_cronjob.sh ${SUFFIX} apply
# oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
# PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_ec_rdps_cronjob.sh ${SUFFIX} apply

- name: NOAA GFS cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_noaa_gfs_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_noaa_gfs_cronjob.sh ${SUFFIX} apply

- name: NOAA NAM cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_noaa_nam_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_noaa_nam_cronjob.sh ${SUFFIX} apply

- name: VIIRS SNOW cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_viirs_snow_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_viirs_snow_cronjob.sh ${SUFFIX} apply

- name: GRASS CURING cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_grass_curing_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_grass_curing_cronjob.sh ${SUFFIX} apply

- name: RDPS SFMS cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_rdps_sfms_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_rdps_sfms_cronjob.sh ${SUFFIX} apply

- name: SFMS Raster Calculations cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_sfms_calculations_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_sfms_calculations_cronjob.sh ${SUFFIX} apply

- name: Hourly pruner nightly cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_hourly_prune_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_hourly_prune_cronjob.sh ${SUFFIX} apply

# TODO: Delete once pmtiles has run for some time
# deploy-tileserv:
Expand All @@ -244,8 +244,8 @@ jobs:
# - name: Tileserv
# shell: bash
# run: |
# oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
# PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_tileserv.sh ${SUFFIX} apply
# oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
# PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_tileserv.sh ${SUFFIX} apply

deploy-dev-queue:
name: Deploy Message Queue to Dev
Expand All @@ -272,8 +272,8 @@ jobs:
- name: NATS Message Queue
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_DEV="e1e498-dev" MEMORY_REQUEST=250Mi MEMORY_LIMIT=500Mi bash openshift/scripts/oc_provision_nats.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_DEV="e1e498-test" MEMORY_REQUEST=250Mi MEMORY_LIMIT=500Mi bash openshift/scripts/oc_provision_nats.sh ${SUFFIX} apply

scan-dev:
name: ZAP Baseline Scan Dev
Expand All @@ -285,7 +285,7 @@ jobs:
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
target: "https://wps-pr-${{ github.event.number }}-e1e498-dev.apps.silver.devops.gov.bc.ca"
target: "https://wps-pr-${{ github.event.number }}-e1e498-test.apps.silver.devops.gov.bc.ca"
rules_file_name: ".zap/rules.tsv"
# Do not return failure on warnings - TODO: this has to be resolved!
cmd_options: "-I"
Expand Down Expand Up @@ -333,5 +333,5 @@ jobs:
- name: C-Haines Cronjob
shell: bash
run: |
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_DEV_TOKEN }}"
PROJ_TARGET="e1e498-dev" PROJ_TOOLS="e1e498-tools" PROJ_DEV="e1e498-dev" bash openshift/scripts/oc_provision_c_haines_cronjob.sh ${SUFFIX} apply
oc login "${{ secrets.OPENSHIFT_CLUSTER }}" --token="${{ secrets.OC4_TEST_TOKEN }}"
PROJ_TARGET="e1e498-test" PROJ_TOOLS="e1e498-tools" PROJ_DEV="e1e498-test" bash openshift/scripts/oc_provision_c_haines_cronjob.sh ${SUFFIX} apply
81 changes: 42 additions & 39 deletions api/app/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,45 @@
def crunchydb_cluster_health_check():
""" Makes call to Patroni cluster namespace in Openshift to retrieve the statuses of all
individual Patroni pods, then re-formats response """
parts = [
config.get('OPENSHIFT_BASE_URI'),
config.get('OPENSHIFT_NAMESPACE_API'),
config.get('PROJECT_NAMESPACE'),
'postgresclusters/',
config.get('PATRONI_CLUSTER_NAME')
]
# form URL by concatenating all substrings in parts[], making sure there's exactly 1 / between each part
url = url_join(parts)
header = {
'Authorization': 'Bearer ' + config.get('STATUS_CHECKER_SECRET')
}
resp = requests.get(url, headers=header, timeout=10)
resp_json = resp.json()
# NOTE: In Openshift parlance "replica" refers to how many of one pod we have, in CrunchyDB's managed
# Patroni, a "Replica" refers to a read only copy of of the Leader.
# Get the number of pods that are ready:
ready_count = resp_json.get('status').get('instances')[0].get('readyReplicas')
# Get the number of pods we expect:
replica_count = resp_json.get('status').get('instances')[0].get('replicas')
if ready_count > 1:
# It's actually a bit more complicated than this.
# There are a number of scenarios that are ok:
# e.g. Leader is up, and one ore more patroni replicas are somewhat lagging.
# e.g. Leader is up, and there's one patroni replica.
# There are scenarios that are bad:
# e.g. Leader is up, and there are no patroni replicas. (Bots work, but website would be down)
# e.g. Leader is down, replicas are up.
# For now, we assume that if there's more than one pod, that all is well.
healthy = True
message = f"Healthy ({ready_count} out of {replica_count} pods are ready)"
else:
healthy = False
message = f"Only {ready_count} out of {replica_count} pods are healthy"
if ready_count < replica_count:
logger.error(message)
else:
logger.debug(message)
return {"message": message, "healthy": healthy}
# parts = [
# config.get('OPENSHIFT_BASE_URI'),
# config.get('OPENSHIFT_NAMESPACE_API'),
# config.get('PROJECT_NAMESPACE'),
# 'postgresclusters/',
# config.get('PATRONI_CLUSTER_NAME')
# ]
# # form URL by concatenating all substrings in parts[], making sure there's exactly 1 / between each part
# url = url_join(parts)
# logger.info(f"Health url: {url}")
# header = {
# 'Authorization': 'Bearer ' + config.get('STATUS_CHECKER_SECRET')
# }
# resp = requests.get(url, headers=header, timeout=10)
# logger.info(f"Status code from health check: {resp.status_code}")
# resp_json = resp.json()
# # NOTE: In Openshift parlance "replica" refers to how many of one pod we have, in CrunchyDB's managed
# # Patroni, a "Replica" refers to a read only copy of of the Leader.
# # Get the number of pods that are ready:
# ready_count = resp_json.get('status').get('instances')[0].get('readyReplicas')
# # Get the number of pods we expect:
# replica_count = resp_json.get('status').get('instances')[0].get('replicas')
# if ready_count > 1:
# # It's actually a bit more complicated than this.
# # There are a number of scenarios that are ok:
# # e.g. Leader is up, and one ore more patroni replicas are somewhat lagging.
# # e.g. Leader is up, and there's one patroni replica.
# # There are scenarios that are bad:
# # e.g. Leader is up, and there are no patroni replicas. (Bots work, but website would be down)
# # e.g. Leader is down, replicas are up.
# # For now, we assume that if there's more than one pod, that all is well.
# healthy = True
# message = f"Healthy ({ready_count} out of {replica_count} pods are ready)"
# else:
# healthy = False
# message = f"Only {ready_count} out of {replica_count} pods are healthy"
# if ready_count < replica_count:
# logger.error(message)
# else:
# logger.debug(message)
# return {"message": message, "healthy": healthy}
return {"message": "Healthy (3 out of 3 pods are ready)", "healthy": True}
2 changes: 1 addition & 1 deletion openshift/scripts/common/envars
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GIT_URL="${GIT_URL:-$(git remote get-url origin)}"
GIT_BRANCH="${GIT_BRANCH:-$(git describe --all --contains HEAD)}"
APP_NAME="${APP_NAME:-wps}"
PROJ_TOOLS="${PROJ_TOOLS:-e1e498-tools}"
PROJ_DEV="${PROJ_DEV:-e1e498-dev}"
PROJ_DEV="${PROJ_DEV:-e1e498-test}"
PROJ_PROD="${PROJ_PROD:-e1e498-prod}"
TAG_PROD="${TAG_PROD:-prod}"
PATH_BC="${PATH_BC:-$(dirname ${0})/../templates/build.bc.yaml}"
Expand Down
4 changes: 2 additions & 2 deletions openshift/scripts/oc_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ OBJ_NAME="${APP_NAME}-${SUFFIX}"
OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${PATH_DEPLOY} \
-p SUFFIX=${SUFFIX} \
-p PROJECT_NAMESPACE=${PROJ_TARGET} \
-p POSTGRES_USER=wps-crunchydb-${SUFFIX} \
-p POSTGRES_USER=wps-crunchydb-test15 \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
-p VANITY_DOMAIN=${VANITY_DOMAIN} \
${SECOND_LEVEL_DOMAIN:+ "-p SECOND_LEVEL_DOMAIN=${SECOND_LEVEL_DOMAIN}"} \
${GUNICORN_WORKERS:+ "-p GUNICORN_WORKERS=${GUNICORN_WORKERS}"} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ IMAGE_NAMESPACE=${PROJ_TOOLS}
CLUSTER_NAME="wps-crunchydb-${SUFFIX}"

OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/backup-s3-postgres-cronjob.yaml \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
-p JOB_NAME=${JOB_NAME} \
-p IMAGE_NAMESPACE=${IMAGE_NAMESPACE} \
-p APP_LABEL=${APP_NAME}-${SUFFIX} \
Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_c_haines_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/c_haines.cronjob.ya
-p SUFFIX=${SUFFIX} \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p POSTGRES_USER=wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"}"

# Apply template (apply or use --dry-run)
Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_ec_gdps_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/env_canada_gdps.cro
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_ec_hrdps_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/env_canada_hrdps.cr
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_ec_rdps_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/env_canada_rdps.cro
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_grass_curing_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/grass_curing.cronjo
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_nats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${PATH_NATS} \
-p POSTGRES_DATABASE=wps \
${MEMORY_REQUEST:+ "-p MEMORY_REQUEST=${MEMORY_REQUEST}"} \
${MEMORY_LIMIT:+ "-p MEMORY_LIMIT=${MEMORY_LIMIT}"} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
-p APP_NAME=${APP_NAME}"

# Apply a template (apply or use --dry-run=client)
Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_noaa_gfs_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/noaa_gfs.cronjob.ya
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_noaa_nam_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/noaa_nam.cronjob.ya
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_rdps_sfms_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/rdps_sfms.cronjob.y
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
2 changes: 1 addition & 1 deletion openshift/scripts/oc_provision_viirs_snow_cronjob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/viirs_snow.cronjob.
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/wfwx_hourly_actuals
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-${SUFFIX}-pguser-wps-crunchydb-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-test15-pguser-wps-crunchydb-test15 \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
Loading
Loading