TrueChartsCatalogClone/stable/fireflyiii/24.3.0/templates/_cronjob.tpl

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 -}}