theshire/kubernetes/apps/default/recyclarr/app/externalsecret.yaml

31 lines
724 B
YAML
Raw Permalink Normal View History

2024-01-27 22:28:35 -06:00
---
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: recyclarr
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: recyclarr-secret
template:
engineVersion: v2
data:
RADARR_API_KEY: "{{ .radarr_api_key }}"
SONARR_API_KEY: "{{ .sonarr_api_key }}"
dataFrom:
- extract:
key: radarr
rewrite:
- regexp:
source: "(.*)"
target: "radarr_$1"
- extract:
key: sonarr
rewrite:
- regexp:
source: "(.*)"
target: "sonarr_$1"