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

56 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2024-08-15 09:30:24 -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: omegabrr
spec:
refreshInterval: 5m
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: omegabrr-secret
template:
engineVersion: v2
data:
config.yaml: |
server:
host: 0.0.0.0
port: 80
apiToken: {{ .OMEGABRR_API_KEY }}
clients:
autobrr:
host: http://autobrr.default.svc.cluster.local
apikey: {{ .AUTOBRR_API_KEY }}
arr:
- name: radarr
type: radarr
host: http://radarr.default.svc.cluster.local
apikey: {{ .radarr_api_key }}
2024-08-15 10:07:37 -05:00
filters: [2]
2024-08-19 08:35:55 -05:00
excludeAlternateTitles: true
2024-08-15 09:30:24 -05:00
- name: sonarr
type: sonarr
host: http://sonarr.default.svc.cluster.local
apikey: {{ .sonarr_api_key }}
2024-08-15 10:09:04 -05:00
filters: [3]
2024-08-19 08:35:55 -05:00
excludeAlternateTitles: true
2024-08-15 09:30:24 -05:00
dataFrom:
- extract:
key: omegabrr
- extract:
key: autobrr
- extract:
key: radarr
rewrite:
- regexp:
source: "(.*)"
target: "radarr_$1"
- extract:
key: sonarr
rewrite:
- regexp:
source: "(.*)"
target: "sonarr_$1"