Files
auricom-home-cluster/kubernetes/apps/default/windmill/app/externalsecret.yaml
2024-07-15 22:33:14 +02:00

30 lines
978 B
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: windmill
namespace: default
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: windmill-secret
template:
engineVersion: v2
data:
# App
WINDMILL_POSTGRES_URL: "postgres://{{ .WINDMILL__POSTGRES_USER }}:{{ .WINDMILL__POSTGRES_PASS }}@postgres16-rw.database.svc.cluster.local/windmill"
# Postgres Init
INIT_POSTGRES_DBNAME: windmill
INIT_POSTGRES_HOST: postgres16-rw.database.svc.cluster.local
INIT_POSTGRES_USER: "{{ .WINDMILL__POSTGRES_USER }}"
INIT_POSTGRES_PASS: "{{ .WINDMILL__POSTGRES_PASS }}"
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:
key: cloudnative-pg
- extract:
key: windmill