This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/kubernetes/apps/monitoring/grafana/app/externalsecret.yaml

25 lines
555 B
YAML
Raw Normal View History

2023-08-13 12:13:53 -05:00
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: grafana-secrets
namespace: monitoring
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: grafana-secrets
creationPolicy: Owner
template:
engineVersion: v2
data:
2023-10-10 13:06:16 -05:00
GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET: "{{ .authentik_grafana_oauth_client_secret }}"
2023-08-13 12:13:53 -05:00
dataFrom:
- extract:
2023-10-10 13:06:16 -05:00
key: Authentik
2023-08-13 12:13:53 -05:00
rewrite:
- regexp:
source: "(.*)"
2023-10-10 13:06:16 -05:00
target: "authentik_$1"