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

33 lines
741 B
Smarty

{{/* Define the cronjob */}}
{{- define "fireflyiii.cronjob" -}}
{{- $fullname := (include "tc.v1.common.lib.chart.names.fullname" $) }}
enabled: true
type: "CronJob"
schedule: "0 8 * * *"
podSpec:
restartPolicy: Never
containers:
cron:
enabled: true
primary: true
probes:
startup:
enabled: false
readiness:
enabled: false
liveness:
enabled: false
imageSelector: alpineImage
args:
- curl
- "http://{{ $fullname }}:{{ .Values.service.main.ports.main.port }}/api/v1/cron/$(STATIC_CRON_TOKEN)"
env:
STATIC_CRON_TOKEN:
secretKeyRef:
name: firefly-secrets
key: STATIC_CRON_TOKEN
{{- end -}}