Skip to content

Commit

Permalink
comment out the default initdb script
Browse files Browse the repository at this point in the history
Signed-off-by: jessebot <[email protected]>
  • Loading branch information
jessebot committed Jul 22, 2024
1 parent 25d062e commit 197f2cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
5 changes: 2 additions & 3 deletions charts/matrix-sliding-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ A Helm chart for deploying matrix sliding sync on Kubernetes
| postgresql.global.postgresql.auth.secretKeys.databaseUsername | string | `"username"` | key in existingSecret with username for matrix-sliding-sync to connect to db |
| postgresql.global.postgresql.auth.secretKeys.userPasswordKey | string | `"password"` | key in existingSecret with password for matrix-sliding-sync to connect to db |
| postgresql.global.postgresql.auth.username | string | `"syncv3"` | username of matrix-sliding-sync postgres user |
| postgresql.primary.initdb | object | `{"scripts":{"matrix_sliding_sync.sql":"CREATE DATABASE matrix ENCODING 'UTF8' LOCALE 'C' TEMPLATE template0 OWNER syncv3;\nGRANT ALL PRIVILEGES ON DATABASE matrix-sliding-sync TO syncv3;\nGRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO syncv3;\n"}}` | If using an external Postgres server, make sure to configure the database ref: https://github.com/matrix-org/synapse/blob/master/docs/postgres.md |
| postgresql.primary.initdb.scripts | object | `{"matrix_sliding_sync.sql":"CREATE DATABASE matrix ENCODING 'UTF8' LOCALE 'C' TEMPLATE template0 OWNER syncv3;\nGRANT ALL PRIVILEGES ON DATABASE matrix-sliding-sync TO syncv3;\nGRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO syncv3;\n"}` | Map of initdb scripts. Specify dictionary of scripts to be run at first boot |
| postgresql.primary.initdb.scripts."matrix_sliding_sync.sql" | string | `"CREATE DATABASE matrix ENCODING 'UTF8' LOCALE 'C' TEMPLATE template0 OWNER syncv3;\nGRANT ALL PRIVILEGES ON DATABASE matrix-sliding-sync TO syncv3;\nGRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO syncv3;\n"` | note, if you change postgresql.global.postgresql.auth.username, or postgresql.global.postgresql.auth.secretKeys.userPasswordKey, please also change it in the 3 lines of this script |
| postgresql.primary.initdb | object | `{"scripts":{}}` | If using an external Postgres server, make sure to configure the database ref: https://github.com/matrix-org/synapse/blob/master/docs/postgres.md |

Check warning on line 71 in charts/matrix-sliding-sync/README.md

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

Please consider an alternative to `master`. Possibilities include: `primary`, `main`, `leader`, `active`, `writer`
Raw output
/master/gi
| postgresql.primary.initdb.scripts | object | `{}` | Map of initdb scripts. Specify dictionary of scripts to be run at first boot. If you're reading this in the README of the chart repo, please check out the values.yaml for info. |
| postgresql.primary.podSecurityContext.enabled | bool | `true` | |
| postgresql.primary.podSecurityContext.fsGroup | int | `1000` | |
| postgresql.primary.podSecurityContext.runAsUser | int | `1000` | |
Expand Down
23 changes: 14 additions & 9 deletions charts/matrix-sliding-sync/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,20 @@ postgresql:
# -- If using an external Postgres server, make sure to configure the database
# ref: https://github.com/matrix-org/synapse/blob/master/docs/postgres.md
initdb:
# -- Map of initdb scripts. Specify dictionary of scripts to be run at first boot
scripts:
# -- note, if you change postgresql.global.postgresql.auth.username,
# or postgresql.global.postgresql.auth.secretKeys.userPasswordKey,
# please also change it in the 3 lines of this script
matrix_sliding_sync.sql: |
CREATE DATABASE matrix ENCODING 'UTF8' LOCALE 'C' TEMPLATE template0 OWNER syncv3;
GRANT ALL PRIVILEGES ON DATABASE matrix-sliding-sync TO syncv3;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO syncv3;
# -- Map of initdb scripts. Specify dictionary of scripts to be run at first boot.
# If you're reading this in the README of the chart repo, please check out
# the values.yaml for info.
scripts: {}
# -- uncomment to provide a database setup schedule. Alternatively, you
# can also provide postgresql.primary.initdb.scriptsConfigMap or
# postgresql.primary.initdb.scriptsSecret Note: if you change
# postgresql.global.postgresql.auth.username, or
# postgresql.global.postgresql.auth.secretKeys.userPasswordKey, please
# also change it in the 3 lines of this script, if you're using this option.
# matrix_sliding_sync.sql: |
# CREATE DATABASE matrix ENCODING 'UTF8' LOCALE 'C' TEMPLATE template0 OWNER syncv3;
# GRANT ALL PRIVILEGES ON DATABASE matrix-sliding-sync TO syncv3;
# GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO syncv3;

podSecurityContext:
enabled: true
Expand Down

0 comments on commit 197f2cb

Please sign in to comment.