add gitea to cloudnativepg

This commit is contained in:
2025-06-08 10:34:03 -04:00
parent bdb3c3fa65
commit b343ebeba0
3 changed files with 41 additions and 1 deletions

View File

@@ -42,3 +42,9 @@ spec:
login: true
passwordSecret:
name: authentik-auth
- name: gitea
ensure: present
comment: gitea
login: true
passwordSecret:
name: gitea-auth

View File

@@ -0,0 +1,9 @@
apiVersion: postgresql.cnpg.io/v1
kind: Database
metadata:
name: gitea
spec:
name: gitea
owner: gitea
cluster:
name: weyma-pgsql

View File

@@ -0,0 +1,25 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: gitea-auth
spec:
data:
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: cloudnativepg
metadataPolicy: None
property: gitea_pw
secretKey: password
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: weyma-vault
target:
template:
data:
username: gitea
password: "{{ .password }}"
creationPolicy: Owner
deletionPolicy: Retain
name: gitea-auth