---
# Run the mismatch finder scheduler on kubernetes
apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: mismatch-finder.schedule
  namespace: tool-mismatch-finder
  labels:
    name: mismatch-finder.schedule
    toolforge: tool
spec:
  schedule: "* * * * *"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        metadata:
          labels:
            toolforge: tool
        spec:
          containers:
          - name: artisan-schedule
            image: docker-registry.tools.wmflabs.org/toolforge-php73-sssd-base:latest
            command: [ "php", "artisan", "schedule:run" ]
            workingDir: /data/project/mismatch-finder/mismatch-finder-repo
            env:
              - name: HOME
                value: /data/project/mismatch-finder
            imagePullPolicy: Always
          restartPolicy: OnFailure
