scale-catalog/stable/plextraktsync/8.1.11/templates/_cronjob.tpl
Julian Haseleu 5d1ab94342 cleanup
2024-07-14 21:54:53 +00:00

27 lines
593 B
Smarty

{{/* Define the cronjob */}}
{{- define "plextraktsync.cronjob" -}}
enabled: true
type: "CronJob"
schedule: "{{ .Values.plextraktsync.schedule }}"
podSpec:
restartPolicy: Never
containers:
cron:
enabled: true
primary: true
imageSelector: "image"
args:
{{- if .Values.plextraktsync.task }}
- {{ .Values.plextraktsync.task }}
{{- else }}
- sync --sync=all
{{- end }}
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
{{- end -}}