mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 05:35:45 +08:00
79 lines
2.6 KiB
YAML
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
|