diff --git a/roles/openshift-apps/toddlers/templates/cron_playtime.yml b/roles/openshift-apps/toddlers/templates/cron_playtime.yml index bd21d18e05..ff4b2297c1 100644 --- a/roles/openshift-apps/toddlers/templates/cron_playtime.yml +++ b/roles/openshift-apps/toddlers/templates/cron_playtime.yml @@ -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 + diff --git a/roles/openshift-apps/toddlers/templates/fedora-messaging.toml b/roles/openshift-apps/toddlers/templates/fedora-messaging.toml index 14bb5e29c7..60593006c0 100644 --- a/roles/openshift-apps/toddlers/templates/fedora-messaging.toml +++ b/roles/openshift-apps/toddlers/templates/fedora-messaging.toml @@ -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"]