theshire/kubernetes/apps/default/linkwarden/app/externalsecret.yaml
2024-09-21 15:42:31 -05:00

21 lines
636 B
YAML

---
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: linkwarden
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: linkwarden-secret
template:
engineVersion: v2
data:
NEXTAUTH_SECRET: "{{ .LINKWARDEN_NEXTAUTH_SECRET }}"
DATABASE_URL: |-
postgres://{{ .LINKWARDEN_POSTGRES_USER }}:{{ .LINKWARDEN_POSTGRES_PASSWORD }}@postgres-primary-real.database.svc/linkwarden
dataFrom:
- extract:
key: linkwarden