| |
@@ -264,4 +264,57 @@
|
| |
- name: fedora-messaging-cert-volume
|
| |
secret:
|
| |
secretName: toddlers-fedora-messaging-crt
|
| |
+ {% else %}
|
| |
+ ---
|
| |
+ apiVersion: batch/v1
|
| |
+ kind: CronJob
|
| |
+ metadata:
|
| |
+ name: playtime-check-commit-rights
|
| |
+ spec:
|
| |
+ successfulJobsHistoryLimit: 3
|
| |
+ failedJobsHistoryLimit: 3
|
| |
+ concurrencyPolicy: Forbid
|
| |
+ schedule: "0 8 */2 * *"
|
| |
+ startingDeadlineSeconds: 500
|
| |
+ jobTemplate:
|
| |
+ spec:
|
| |
+ template:
|
| |
+ metadata:
|
| |
+ labels:
|
| |
+ parent: "cron_playtime_toddlers"
|
| |
+ spec:
|
| |
+ restartPolicy: Never
|
| |
+ containers:
|
| |
+ - name: toddlers
|
| |
+ image: image-registry.openshift-image-registry.svc:5000/toddlers/toddlers:latest
|
| |
+ command: ["/usr/bin/python3", "/code/toddlers/playtime.py", "check-commit-rights"]
|
| |
+ 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
|
| |
{% endif %}
|
| |
Following https://pagure.io/fedora-infra/toddlers/pull-request/128 this will enable the toddler plugin in stg.
I've copy/pasted the configuration from the other active toddlers, they looks like all the same to me.
Also, is there a test email address where to send the output?
Signed-off-by: Mattia Verga mattia.verga@tiscali.it