apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: qbit-manage-config
  namespace: qbittorrent
  labels:
    app.kubernetes.io/name: qbit-manage-config
    app.kubernetes.io/instance: qbittorrent
    app.kubernetes.io/part-of: qbittorrent
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao
  target:
    template:
      mergePolicy: Merge
      engineVersion: v2
      data:
        ntfy-url: "{{ .endpoint }}/{{ .topic }}"
  data:
    - secretKey: endpoint
      remoteRef:
        key: /cl01tl/ntfy/users/cl01tl
        property: internal-endpoint-credential
    - secretKey: topic
      remoteRef:
        key: /cl01tl/ntfy/topics
        property: qbit-manage
