distgit-bz: make the cron a template and never notify users in staging

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-12-17 17:36:44 +01:00
parent 8e13bac145
commit 2cfbf235bc
2 changed files with 6 additions and 1 deletions

View file

@ -33,7 +33,7 @@
- role: openshift/object
app: distgit-bugzilla-sync
file: cron.yml
template: cron.yml
objectname: cron.yml
tags:
- cron-job

View file

@ -22,8 +22,13 @@ spec:
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",
"--add-config-file=/etc/distgit-bugzilla-sync/configuration.toml"]
{% endif %}
volumeMounts:
- name: config-volume
mountPath: /etc/distgit-bugzilla-sync