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

33 lines
844 B
YAML
Raw Permalink Normal View History

2024-09-05 05:40:23 -05: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 }}"
RADARR_ANIME_API_KEY: "{{ .radarr_api_key_anime }}"
SONARR_ANIME_API_KEY: "{{ .sonarr_api_key_anime }}"
2024-09-05 05:40:23 -05:00
dataFrom:
- extract:
key: radarr
rewrite:
- regexp:
source: "(.*)"
target: "radarr_$1"
- extract:
key: sonarr
rewrite:
- regexp:
source: "(.*)"
target: "sonarr_$1"