apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: events-collector
spec:
  concurrencyPolicy: Forbid
  schedule: "55 22 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: Never
          containers:
            - name: events-collector
              image: fintlabs.azurecr.io/events-collector:build.6
              envFrom:
                - configMapRef:
                    name: fint-environment
                - secretRef:
                    name: fint-events-collector
              env:
                - {name: fint.audit.baseurl, value: https://alpha.felleskomponent.no/events}
                - {name: fint.audit.blob.container-name, value: fint-events-alpha}
                - {name: fint.audit.orgids, value: fintlabs.no}
                - {name: fint.audit.timeout, value: PT45S}
                - {name: fint.audit.collect, value: PT24H}
                - {name: fint.audit.retain, value: PT36H}
