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

31 lines
734 B
YAML
Raw Normal View History

2024-02-02 08:20:27 -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: unpackerr
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: unpackerr-secret
template:
engineVersion: v2
data:
UN_RADARR_0_API_KEY: "{{ .radarr_api_key }}"
UN_SONARR_0_API_KEY: "{{ .sonarr_api_key }}"
dataFrom:
- extract:
key: radarr
rewrite:
- regexp:
source: "(.*)"
target: "radarr_$1"
- extract:
key: sonarr
rewrite:
- regexp:
source: "(.*)"
target: "sonarr_$1"