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

Grant create on public schema #4102

Merged
merged 8 commits into from
Nov 18, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PROJ_TARGET="${PROJ_TARGET:-${PROJ_DEV}}"
# Prepare variables for backups
JOB_NAME="backup-postgres-${APP_NAME}-${SUFFIX}"
IMAGE_NAMESPACE=${PROJ_TOOLS}
CLUSTER_NAME="wps-crunchydb-${SUFFIX}"
CLUSTER_NAME="wps-crunchydb-16-${SUFFIX}"

OC_PROCESS="oc -n ${PROJ_TARGET} process -f ${TEMPLATE_PATH}/backup-s3-postgres-cronjob.yaml \
-p CRUNCHYDB_USER=wps-crunchydb-16-${SUFFIX}-pguser-wps-crunchydb-16-${SUFFIX} \
Expand Down
7 changes: 5 additions & 2 deletions openshift/templates/crunchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ objects:
init.sql: |-
\c wps\\
CREATE EXTENSION postgis;
GRANT CREATE ON SCHEMA public TO "${APP_NAME}-${SUFFIX}";
kind: ConfigMap
metadata:
name: wps-init-sql
labels:
app: ${APP_NAME}-${SUFFIX}
name: wps-init-sql-${SUFFIX}
- apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
Expand All @@ -79,7 +82,7 @@ objects:
app: ${APP_NAME}-${SUFFIX}
databaseInitSQL:
key: init.sql
name: wps-init-sql
name: wps-init-sql-${SUFFIX}
users:
- name: ${APP_NAME}-${SUFFIX}
databases:
Expand Down
Loading