Remove-Bitnami-Dependencies #7
@ -1,3 +1,37 @@
|
|||||||
|
{{- if eq ($.Values.global.yonote_cron_calendar_events.cron_enabled | toString) "true" }}
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: cron-calendar-events
|
||||||
|
spec:
|
||||||
|
schedule: "*/1 * * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: cron-calendar-events
|
||||||
|
image: curlimages/curl
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: yonote-secrets
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- >-
|
||||||
|
date;
|
||||||
|
curl
|
||||||
|
-X POST
|
||||||
|
{{ .Values.global.yonote_cron_calendar_events.url }}
|
||||||
|
-H "Content-Type: application/json"
|
||||||
|
-d '
|
||||||
|
{
|
||||||
|
"token": "$(UTILS_SECRET)"
|
||||||
|
}
|
||||||
|
'
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
{{- if eq ($.Values.global.yonote_cron_task_scheduler.cron_enabled | toString) "true" }}
|
{{- if eq ($.Values.global.yonote_cron_task_scheduler.cron_enabled | toString) "true" }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
|
|||||||
@ -65,11 +65,11 @@ global:
|
|||||||
SMTP_REQUIRE_TLS: ""
|
SMTP_REQUIRE_TLS: ""
|
||||||
|
|
||||||
yonote_cron_calendar_events:
|
yonote_cron_calendar_events:
|
||||||
cron_enabled: "false"
|
cron_enabled: "true"
|
||||||
url: http://yonote-web/api/cron.calendar_events
|
url: http://yonote-web/api/cron.calendar_events
|
||||||
|
|
||||||
yonote_cron_task_scheduler:
|
yonote_cron_task_scheduler:
|
||||||
cron_enabled: "false"
|
cron_enabled: "true"
|
||||||
url: http://yonote-web/api/cron.schedule
|
url: http://yonote-web/api/cron.schedule
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user