toddlers: Add the cron job for the packagers_without_bugzilla toddler
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
8b6c8a0186
commit
1bb72c915e
2 changed files with 58 additions and 5 deletions
|
@ -157,3 +157,56 @@ spec:
|
|||
secret:
|
||||
secretName: toddlers-fedora-messaging-crt
|
||||
|
||||
---
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: playtime-packagers-without-bugzilla
|
||||
spec:
|
||||
successfulJobsHistoryLimit: 3
|
||||
failedJobsHistoryLimit: 3
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "0 7 * * *"
|
||||
startingDeadlineSeconds: 500
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
parent: "cron_playtime_toddlers"
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: toddlers
|
||||
image: docker-registry.default.svc:5000/toddlers/toddlers:latest
|
||||
command: ["/usr/bin/python3", "/code/toddlers/playtime.py", "packagers_without_bugzilla"]
|
||||
env:
|
||||
- name: PYTHONPATH
|
||||
value: "/code"
|
||||
volumeMounts:
|
||||
- name: toddlers-secret-volume
|
||||
mountPath: /etc/fedora-messaging
|
||||
readOnly: true
|
||||
- name: fedora-messaging-ca-volume
|
||||
mountPath: /etc/pki/rabbitmq/ca
|
||||
readOnly: true
|
||||
- name: fedora-messaging-key-volume
|
||||
mountPath: /etc/pki/rabbitmq/key
|
||||
readOnly: true
|
||||
- name: fedora-messaging-cert-volume
|
||||
mountPath: /etc/pki/rabbitmq/cert
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: toddlers-secret-volume
|
||||
secret:
|
||||
secretName: toddlers-secret
|
||||
- name: fedora-messaging-ca-volume
|
||||
secret:
|
||||
secretName: toddlers-fedora-messaging-ca
|
||||
- name: fedora-messaging-key-volume
|
||||
secret:
|
||||
secretName: toddlers-fedora-messaging-key
|
||||
- name: fedora-messaging-cert-volume
|
||||
secret:
|
||||
secretName: toddlers-fedora-messaging-crt
|
||||
|
||||
|
|
|
@ -79,6 +79,11 @@ dist_git_url = "https://src{{ env_suffix }}.fedoraproject.org"
|
|||
dist_git_token_seed = "private random string to change"
|
||||
dist_git_token = "private random string to change"
|
||||
|
||||
# Configuration file storing all the email overrides in the form of:
|
||||
# "foo@bar.com" = "bar@foo.org"
|
||||
# This is the same format as used by the distgit_bugzilla_sync cron/app
|
||||
email_overrides_file = "/etc/fedora-messaging/email_overrides.toml"
|
||||
|
||||
[consumer_config.default.pdc_config]
|
||||
# Configuration to talk to PDC, as understood by pdc-client.
|
||||
server = "https://pdc.fedoraproject.org/rest_api/v1/"
|
||||
|
@ -95,11 +100,6 @@ dist_git_token = "{{ toddlers_flag_ci_token }}"
|
|||
dist_git_token = "{{ toddlers_flag_commit_build_token }}"
|
||||
|
||||
[consumer_config.packager_bugzilla_sync]
|
||||
# Configuration file storing all the email overrides in the form of:
|
||||
# "foo@bar.com" = "bar@foo.org"
|
||||
# This is the same format as used by the distgit_bugzilla_sync cron/app
|
||||
email_overrides_file = "/etc/fedora-messaging/email_overrides.toml"
|
||||
|
||||
# List of accounts we do not want to report about
|
||||
ignorable_accounts = ["packagerbot", "zuul"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue