Skip to content

Commit

Permalink
Merge pull request #356 from bcgov/chore/deploy-to-test
Browse files Browse the repository at this point in the history
chore: deploy cif to test
  • Loading branch information
dleard authored Mar 15, 2022
2 parents 8d6d631 + 5a59031 commit 717e637
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/cas-cif/templates/cronJobs/deploy-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
- |
set -euo pipefail;
sqitch deploy;
if [[ "$NAMESPACE" == *-dev ]]; then
if [[ "$NAMESPACE" == *-dev || "$NAMESPACE" == *-test ]]; then
for file in data/dev/*.sql; do
psql -d cif -f "${file}";
done;
Expand Down
40 changes: 40 additions & 0 deletions chart/cas-cif/values-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
app:
sitewide_notice:
content: <div class="alert alert-warning">This is the TEST environment.</div>

nginx-sidecar:
hostName: cas-cif-test.apps.silver.devops.gov.bc.ca

cas-postgres:
patroni:
walE:
enable: true
# the GCS bucket name should be {{ namespace }}-{{ gcs.bucketSuffix }}
gcsBucket: c53ff1-test-cif-backups
# kubernetesSecret should be gcp-{{ namespace }}-{{ gcs.bucketSuffix }}-service-account-key
kubernetesSecret: gcp-c53ff1-test-cif-backups-service-account-key # pragma: allowlist secret
# options below are required if walE.enable is true
namespace: c53ff1-test
gcs:
bucketSuffix: cif-backups

db:
preUpgradeCommand: |
psql<<EOF
select pg_terminate_backend(pid) from pg_stat_activity where
-- don't kill my own connection!
pid <> pg_backend_pid()
-- don't kill the connections to other databases
and datname = '$(CIF_DATABASE)';
drop database if exists $(CIF_DATABASE);
drop user if exists $(CIF_USER);
EOF
cert-issue:
airflowEndpoint: https://cas-airflow-test.apps.silver.devops.gov.bc.ca

deploy-db:
airflowEndpoint: https://cas-airflow-test.apps.silver.devops.gov.bc.ca

download-dags:
airflowEndpoint: https://cas-airflow-test.apps.silver.devops.gov.bc.ca

0 comments on commit 717e637

Please sign in to comment.