review-stats: create a second entrypoint
Signed-off-by: Mattia Verga <mattia.verga@protonmail.com>
This commit is contained in:
parent
7bd440f416
commit
d0358e8ffe
2 changed files with 55 additions and 2 deletions
|
@ -7,5 +7,9 @@ url = https://bugzilla.redhat.com/xmlrpc.cgi
|
||||||
username = package-review@lists.fedoraproject.org
|
username = package-review@lists.fedoraproject.org
|
||||||
password = {{ packagereviewbugzilla }}
|
password = {{ packagereviewbugzilla }}
|
||||||
|
|
||||||
|
[review-stats-worker]
|
||||||
|
needinfo_waiting_days = 30
|
||||||
|
not_updated_days = 365
|
||||||
|
|
||||||
[review-stats-logging]
|
[review-stats-logging]
|
||||||
journal_level = INFO
|
journal_level = INFO
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: cron
|
name: review-stats-make-html-pages
|
||||||
spec:
|
spec:
|
||||||
|
successfulJobsHistoryLimit: 3
|
||||||
|
failedJobsHistoryLimit: 1
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
schedule: "0 * * * *"
|
schedule: "0 * * * *"
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
|
@ -19,6 +21,8 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker-registry.default.svc:5000/review-stats/builder:latest
|
image: docker-registry.default.svc:5000/review-stats/builder:latest
|
||||||
|
command: ["review-stats", "-c", "/etc/review-stats/config.cfg", "-D",
|
||||||
|
"make-pages", "-d", "/review-stats/"]
|
||||||
env:
|
env:
|
||||||
- name: HOME
|
- name: HOME
|
||||||
value: "/tmp"
|
value: "/tmp"
|
||||||
|
@ -37,4 +41,49 @@ spec:
|
||||||
name: review-stats-configmap
|
name: review-stats-configmap
|
||||||
- name: build-output
|
- name: build-output
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: openshift-{{env_short}}-reviewstats
|
claimName: openshift-{{ env_short }}-reviewstats
|
||||||
|
---
|
||||||
|
apiVersion: batch/v1beta1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: review-stats-work-on-bugs
|
||||||
|
spec:
|
||||||
|
successfulJobsHistoryLimit: 3
|
||||||
|
failedJobsHistoryLimit: 1
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
schedule: "45 0 * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
parent: "cronjobbuild"
|
||||||
|
spec:
|
||||||
|
hostAliases:
|
||||||
|
- hostnames:
|
||||||
|
- partner-bugzilla.redhat.com
|
||||||
|
ip: 209.132.183.72
|
||||||
|
containers:
|
||||||
|
- name: build
|
||||||
|
image: docker-registry.default.svc:5000/review-stats/builder:latest
|
||||||
|
command: ["review-stats", "-c", "/etc/review-stats/config.cfg", "-D",
|
||||||
|
"work-on-bugs", "-d"]
|
||||||
|
env:
|
||||||
|
- name: HOME
|
||||||
|
value: "/tmp"
|
||||||
|
volumeMounts:
|
||||||
|
- name: review-stats-config
|
||||||
|
mountPath: /etc/review-stats
|
||||||
|
readOnly: true
|
||||||
|
- name: build-output
|
||||||
|
mountPath: /review-stats
|
||||||
|
readOnly: false
|
||||||
|
restartPolicy: Never
|
||||||
|
startingDeadlineSeconds: 600
|
||||||
|
volumes:
|
||||||
|
- name: review-stats-config
|
||||||
|
configMap:
|
||||||
|
name: review-stats-configmap
|
||||||
|
- name: build-output
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: openshift-{{ env_short }}-reviewstats
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue