30 lines
734 B
YAML
30 lines
734 B
YAML
---
|
|
# 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"
|