diff --git a/manifests/artemis/backstage/db-cluster.yaml b/manifests/artemis/backstage/db-cluster.yaml index 495ecea..b4767d0 100644 --- a/manifests/artemis/backstage/db-cluster.yaml +++ b/manifests/artemis/backstage/db-cluster.yaml @@ -2,22 +2,21 @@ apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: backstage-postgres - namespace: backstage spec: - imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.5-v0.3.0@sha256:be3f025d79aa1b747817f478e07e71be43236e14d00d8a9eb3914146245035ba instances: 1 - managed: - roles: - - name: backstage - superuser: true - login: true + imageName: ghcr.io/cloudnative-pg/postgresql:16 + enableSuperuser: true + + storage: + size: 2Gi + storageClass: local-path + bootstrap: initdb: database: backstage owner: backstage secret: name: backstage-postgres-user - - storage: - size: 2Gi - storageClass: local-path + # Ensure the 'backstage' role can login and is a superuser + postInitSQL: + - ALTER ROLE backstage WITH SUPERUSER LOGIN;