feat(hasura-engine) add example of how to create an external-secret for chart

This commit is contained in:
Tommy 2023-12-19 17:52:11 +01:00
parent eba0746512
commit 3ce1e4ab7d
No known key found for this signature in database

View file

@ -0,0 +1,32 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: hasura
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: hasura-secret
creationPolicy: Owner
template:
engineVersion: v2
data:
# Hasura
HASURA_GRAPHQL_ADMIN_SECRET: "{{ .HASURA_GRAPHQL_ADMIN_SECRET }}"
HASURA_GRAPHQL_DATABASE_URL: |-
postgres://hasura:{{ .HASURA_POSTGRES_PASS }}@postgres-rw.databases.svc.cluster.local/hasura
# Postgres Init
INIT_POSTGRES_DBNAME: hasura
INIT_POSTGRES_HOST: postgres-rw.databases.svc.cluster.local
INIT_POSTGRES_USER: hasura
INIT_POSTGRES_PASS: "{{ .HASURA_POSTGRES_PASS }}"
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
# Vars
PUBLIC_DOMAIN: ${PUBLIC_DOMAIN}
dataFrom:
- extract:
key: hasura
- extract:
key: postgres