Skip to content

Commit

Permalink
Change cluster name
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss committed Nov 18, 2024
1 parent 18800ad commit 9015a2f
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
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-pg16-${SUFFIX} \
-p POSTGRES_USER=wps-crunchydb-16-${SUFFIX} \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
-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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
-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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
-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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${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_noon_forecasts
-p SUFFIX=${SUFFIX} \
-p SCHEDULE=\"${SCHEDULE}\" \
-p POSTGRES_DATABASE=${POSTGRES_DATABASE:-${APP_NAME}} \
-p CRUNCHYDB_USER=wps-crunchydb-pg16-${SUFFIX}-pguser-wps-crunchydb-pg16-${SUFFIX} \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
${PROJ_TOOLS:+ "-p PROJ_TOOLS=${PROJ_TOOLS}"} \
${IMAGE_REGISTRY:+ "-p IMAGE_REGISTRY=${IMAGE_REGISTRY}"}"

Expand Down
4 changes: 2 additions & 2 deletions openshift/templates/crunchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parameters:
required: true
- name: APP_NAME
description: Application name (wps - wildfire predictive services)
value: wps-crunchydb-pg16
value: wps-crunchydb-16
required: true
- name: BUCKET
description: S3 bucket name
Expand Down Expand Up @@ -87,7 +87,7 @@ objects:
- wps
instances:
- name: crunchy
replicas: 1
replicas: 2
resources:
requests:
cpu: ${CPU_REQUEST}
Expand Down

0 comments on commit 9015a2f

Please sign in to comment.