feat(ente): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 39s

This commit is contained in:
Peter 2024-08-15 12:45:45 +02:00
parent aaa2c3a497
commit c8482e6509
Signed by: prskr
GPG key ID: F56BED6903BC5E37
4 changed files with 21 additions and 1 deletions

View file

@ -9,4 +9,4 @@ spec:
secretName: coder-db-credentials secretName: coder-db-credentials
privileges: OWNER privileges: OWNER
secretTemplate: # Output secrets can be customized using standard Go templates secretTemplate: # Output secrets can be customized using standard Go templates
PQ_URL: "postgresql://{{.Role}}:{{.Password}}@app-cluster-pooler-rw.postgres.svc:5432/{{.Database}}?sslmode=require&search_path=coder" PQ_URL: "postgresql://{{.Role}}:{{.Password}}@{{.Host}}:5432/{{.Database}}?sslmode=require&search_path=coder"

View file

@ -23,6 +23,8 @@ labels:
resources: resources:
- resources/namespace.yaml - resources/namespace.yaml
- resources/museum/db/db.yaml
- resources/museum/db/user.yaml
- resources/museum/deployment.yaml - resources/museum/deployment.yaml
- resources/museum/service.yaml - resources/museum/service.yaml
- resources/photos/deployment.yaml - resources/photos/deployment.yaml

View file

@ -0,0 +1,8 @@
---
apiVersion: db.movetokube.com/v1alpha1
kind: Postgres
metadata:
name: ente
spec:
database: ente
dropOnDelete: false

View file

@ -0,0 +1,10 @@
---
apiVersion: db.movetokube.com/v1alpha1
kind: PostgresUser
metadata:
name: ente
spec:
role: ente
database: ente
secretName: ente-db-credentials
privileges: OWNER