[inactive-gitlab-users] Land the cron jon definition
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [inactive-gitlab-users] Land the cron jon definition
- Date: Tue, 3 Sep 2019 16:44:16 +0000 (UTC)
commit 8d4ffc771c0680fbf4a990096700dfd1a9c8623b
Author: Andrea Veri <averi redhat com>
Date: Tue Sep 3 18:43:14 2019 +0200
Land the cron jon definition
resources/inactive-gitlab-users-cron.yaml | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
---
diff --git a/resources/inactive-gitlab-users-cron.yaml b/resources/inactive-gitlab-users-cron.yaml
new file mode 100644
index 0000000..21e5748
--- /dev/null
+++ b/resources/inactive-gitlab-users-cron.yaml
@@ -0,0 +1,31 @@
+apiVersion: batch/v1beta1
+kind: CronJob
+metadata:
+ name: inactive-gitlab-users-cron
+spec:
+ schedule: '0 0 * * 0'
+ successfulJobsHistoryLimit: 3
+ failedJobsHistoryLimit: 1
+ jobTemplate:
+ spec:
+ template:
+ spec:
+ containers:
+ - name: inactive-gitlab-users-cron
+ image: "docker-registry.default.svc:5000/inactive-gitlab-users/inactive-gitlab-users"
+ command: ["/usr/local/bin/inactive-gitlab-users.sh"]
+ imagePullPolicy: Always
+ env:
+ - name: GITLAB_TOKEN
+ valueFrom:
+ secretKeyRef:
+ name: gitlab-token
+ key: GITLAB_TOKEN
+ value: "GNOME Sysadmins"
+ - name: TIMEDELTA_UNIT
+ value: "days"
+ - name: TIMEDELTA_VALUE
+ value: 7
+ dnsPolicy: ClusterFirst
+ restartPolicy: Never
+ terminationGracePeriodSeconds: 30
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]