-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelmbroker-cronjob-daily.yaml
More file actions
31 lines (31 loc) · 1001 Bytes
/
helmbroker-cronjob-daily.yaml
File metadata and controls
31 lines (31 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: batch/v1
kind: CronJob
metadata:
name: drycc-helmbroker-cronjob-daily
labels:
heritage: drycc
annotations:
component.drycc.cc/version: {{ .Values.image_tag }}
spec:
schedule: "0 0 * * *"
concurrencyPolicy: {{ .Values.concurrency_policy }}
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
serviceAccount: drycc-helmbroker
containers:
- image: {{.Values.image_registry}}/{{.Values.image_org}}/helmbroker:{{.Values.image_tag}}
imagePullPolicy: {{.Values.image_pull_policy}}
name: drycc-helmbroker-cleaner
command:
- /bin/bash
- -c
args:
- python -m helmbroker.cleaner
{{- include "helmbroker.envs" . | indent 12 }}
{{- include "helmbroker.volumeMounts" . | indent 12 }}
{{- include "helmbroker.volumes" . | indent 10 }}