2024-08-15 09:25:21 +00:00
|
|
|
---
|
|
|
|
apiVersion: db.movetokube.com/v1alpha1
|
|
|
|
kind: PostgresUser
|
|
|
|
metadata:
|
|
|
|
name: coder
|
|
|
|
spec:
|
|
|
|
role: coder
|
|
|
|
database: coder
|
|
|
|
secretName: coder-db-credentials
|
2024-08-15 09:48:12 +00:00
|
|
|
privileges: OWNER
|
|
|
|
secretTemplate: # Output secrets can be customized using standard Go templates
|
2024-08-15 10:45:45 +00:00
|
|
|
PQ_URL: "postgresql://{{.Role}}:{{.Password}}@{{.Host}}:5432/{{.Database}}?sslmode=require&search_path=coder"
|