---
apiVersion: batch/v1
kind: CronJob
metadata:
  namespace: downloads
  name: tag-tracker-errors
spec:
  schedule: '0 * * * *'
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: Never
          containers:
            - name: qbittorrent-scripts
              image: ghcr.io/k8s-at-home/qbittorrent-scripts:v1.0.1
              imagePullPolicy: IfNotPresent
              env:
                - name: QB_HOST
                  value: http://qbittorrent:8080
                - name: QB_TAG
                  value: 'Tracker Errors'
              args:
                - '/app/tag-tracker-errors.py'
