scale-catalog/stable/plextraktsync/7.9.16/templates/_cronjob.tpl

27 lines
593 B
Smarty
Raw Permalink Normal View History

2024-07-13 07:59:30 +00:00
{{/* 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 -}}