apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: unpackerr-key-config
  namespace: unpackerr
  labels:
    app.kubernetes.io/name: unpackerr-key-config
    app.kubernetes.io/instance: unpackerr
    app.kubernetes.io/part-of: unpackerr
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao
  data:
    - secretKey: UN_SONARR_0_API_KEY
      remoteRef:
        key: /cl01tl/sonarr/key
        property: key
    - secretKey: UN_SONARR_1_API_KEY
      remoteRef:
        key: /cl01tl/sonarr-4k/key
        property: key
    - secretKey: UN_SONARR_2_API_KEY
      remoteRef:
        key: /cl01tl/sonarr-anime/key
        property: key
    - secretKey: UN_RADARR_0_API_KEY
      remoteRef:
        key: /cl01tl/radarr/key
        property: key
    - secretKey: UN_RADARR_1_API_KEY
      remoteRef:
        key: /cl01tl/radarr-4k/key
        property: key
    - secretKey: UN_RADARR_2_API_KEY
      remoteRef:
        key: /cl01tl/radarr-anime/key
        property: key
    - secretKey: UN_RADARR_3_API_KEY
      remoteRef:
        key: /cl01tl/radarr-standup/key
        property: key
    - secretKey: UN_LIDARR_0_API_KEY
      remoteRef:
        key: /cl01tl/lidarr/key
        property: key
