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

chore: fix makefile & use alphanumeric pwds when creating pgo users #1954

Merged
merged 1 commit into from
Jan 16, 2025
Merged
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
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
Loading