Skip to content

Commit

Permalink
chore: fix makefile & use alphanumeric pwds when creating pgo useres
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jan 16, 2025
1 parent 0625016 commit b987929
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,13 @@ install:
@set -euo pipefail; \
dagConfig=$$(echo '{"org": "bcgov", "repo": "cas-cif", "ref": "$(GIT_SHA1)", "path": "dags/cas_cif_dags.py"}' | base64 -w0); \
helm dep up $(CHART_DIR); \
helm install $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR);
if ! helm status --namespace $(NAMESPACE) $(CHART_INSTANCE); then \
echo 'Installing the application'; \
helm install $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR); \
else \
helm upgrade $(HELM_OPTS) $(CHART_INSTANCE) $(CHART_DIR); \
fi;



restore_prereq: ## Prerequisites for the restore target
Expand Down
6 changes: 6 additions & 0 deletions chart/cas-cif/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,19 @@ spec:
postgres-operator.crunchydata.com/role: pgbouncer
users:
- name: cif
password:
type: AlphaNumeric
databases:
- cif
options: "CREATEROLE"
- name: cifapp
password:
type: AlphaNumeric
databases:
- cif
- name: postgres
password:
type: AlphaNumeric
databases:
- cif
backups:
Expand Down

0 comments on commit b987929

Please sign in to comment.