Files
fedora-infra_ansible/roles/openshift-apps/distgit-bugzilla-sync/templates/cron.yml
Pierre-Yves Chibon 858fcc0136 distgit-bz: do not notify users even in prod, for now
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-04-24 21:34:20 +02:00

79 lines
2.6 KiB
YAML

apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: distgit-bugzilla-sync-email
spec:
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
concurrencyPolicy: Forbid
schedule: "35 2 * * *"
startingDeadlineSeconds: 500
jobTemplate:
spec:
template:
metadata:
labels:
parent: "cronjobdistgit-bugzilla-sync"
spec:
hostAliases:
- hostnames:
- partner-bugzilla.redhat.com
ip: 209.132.183.72
containers:
- name: distgit-bugzilla-sync
image: docker-registry.default.svc:5000/distgit-bugzilla-sync/distgit-bugzilla-sync:latest
{% if env == 'staging' %}
command: ["/usr/local/bin/distgit-bugzilla-sync", "--verbose", "--no-user-notifications",
"--add-config-file=/etc/distgit-bugzilla-sync/configuration.toml"]
{% else %}
command: ["/usr/local/bin/distgit-bugzilla-sync", "--verbose", "--no-user-notifications",
"--add-config-file=/etc/distgit-bugzilla-sync/configuration.toml"]
{% endif %}
volumeMounts:
- name: config-volume
mountPath: /etc/distgit-bugzilla-sync
readOnly: true
restartPolicy: Never
volumes:
- name: config-volume
configMap:
defaultMode: 420
name: distgit-bugzilla-sync-configmap
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: distgit-bugzilla-sync-nomail
spec:
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
concurrencyPolicy: Forbid
schedule: "40 14 * * *"
startingDeadlineSeconds: 500
jobTemplate:
spec:
template:
metadata:
labels:
parent: "cronjobdistgit-bugzilla-sync"
spec:
hostAliases:
- hostnames:
- partner-bugzilla.redhat.com
ip: 209.132.183.72
containers:
- name: distgit-bugzilla-sync
image: docker-registry.default.svc:5000/distgit-bugzilla-sync/distgit-bugzilla-sync:latest
command: ["/usr/local/bin/distgit-bugzilla-sync", "--verbose", "--no-user-notifications",
"--add-config-file=/etc/distgit-bugzilla-sync/configuration.toml"]
volumeMounts:
- name: config-volume
mountPath: /etc/distgit-bugzilla-sync
readOnly: true
restartPolicy: Never
volumes:
- name: config-volume
configMap:
defaultMode: 420
name: distgit-bugzilla-sync-configmap