distgit-bz: adjust the configuration file and use it in the cron job

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2019-12-05 17:25:56 +01:00
parent 44d9e0856b
commit 53d4396031
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ spec:
containers: containers:
- name: distgit-bugzilla-sync - name: distgit-bugzilla-sync
image: docker-registry.default.svc:5000/distgit-bugzilla-sync/mdapi:latest image: docker-registry.default.svc:5000/distgit-bugzilla-sync/mdapi:latest
command: ["distgit-bugzilla-sync --verbose --no-user-notifications"] command: ["distgit-bugzilla-sync --verbose --no-user-notifications --add-config-file=/etc/distgit-bugzilla-sync/configuration.toml"]
volumeMounts: volumeMounts:
- name: config-volume - name: config-volume
mountPath: /etc/distgit-bugzilla-sync mountPath: /etc/distgit-bugzilla-sync

View file

@ -8,4 +8,4 @@ metadata:
app: distgit-bugzilla-sync app: distgit-bugzilla-sync
data: data:
distgit-bugzilla-sync.cfg: |- distgit-bugzilla-sync.cfg: |-
{{ load_file('distgit-bugzilla-sync.cfg') | indent }} {{ load_file('configuration.toml') | indent }}