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:
parent
8e13bac145
commit
2cfbf235bc
2 changed files with 6 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
- role: openshift/object
|
||||
app: distgit-bugzilla-sync
|
||||
file: cron.yml
|
||||
template: cron.yml
|
||||
objectname: cron.yml
|
||||
tags:
|
||||
- cron-job
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue