forgejo: add postgresql operator config, secret

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2025-03-31 10:42:29 +01:00
parent 42853033ba
commit f8adba6df3
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
2 changed files with 16 additions and 0 deletions

View file

@ -4,6 +4,12 @@ metadata:
name: forgejo-ha
namespace: forgejo
spec:
spec:
users:
- name: gitea
databases:
- gitea
options: 'SUPERUSER'
postgresVersion: 17
instances:
- name: forgejo-ha

View file

@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: hippo-pguser-rhino
namespace: forgejo
labels:
postgres-operator.crunchydata.com/cluster: forgejo-ha
postgres-operator.crunchydata.com/pguser: gitea
stringData:
password: "{{ (env == 'production') | ternary(forgejo_postgresql_password, forgejo_stg_postgresql_password) }}"