add gitea to cloudnativepg
This commit is contained in:
@@ -42,3 +42,9 @@ spec:
|
||||
login: true
|
||||
passwordSecret:
|
||||
name: authentik-auth
|
||||
- name: gitea
|
||||
ensure: present
|
||||
comment: gitea
|
||||
login: true
|
||||
passwordSecret:
|
||||
name: gitea-auth
|
||||
9
postgres/config/databases/gitea.yaml
Normal file
9
postgres/config/databases/gitea.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Database
|
||||
metadata:
|
||||
name: gitea
|
||||
spec:
|
||||
name: gitea
|
||||
owner: gitea
|
||||
cluster:
|
||||
name: weyma-pgsql
|
||||
25
postgres/config/gitea_auth.yaml
Normal file
25
postgres/config/gitea_auth.yaml
Normal 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
|
||||
Reference in New Issue
Block a user