scale-catalog/stable/fireflyiii/25.10.21/templates/_cronjob.tpl

33 lines
741 B
Smarty
Raw Permalink Normal View History

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