diff --git a/yonote-chart/charts/app-0.3.15.tgz b/yonote-chart/charts/app-0.3.15.tgz deleted file mode 100644 index b7125eb..0000000 Binary files a/yonote-chart/charts/app-0.3.15.tgz and /dev/null differ diff --git a/yonote-chart/charts/postgresql-11.6.6.tgz b/yonote-chart/charts/postgresql-11.6.6.tgz deleted file mode 100644 index b743d2b..0000000 Binary files a/yonote-chart/charts/postgresql-11.6.6.tgz and /dev/null differ diff --git a/yonote-chart/charts/redis-16.12.1.tgz b/yonote-chart/charts/redis-16.12.1.tgz deleted file mode 100644 index 8be70f6..0000000 Binary files a/yonote-chart/charts/redis-16.12.1.tgz and /dev/null differ diff --git a/yonote-chart/templates/cronjob.yaml b/yonote-chart/templates/cronjob.yaml new file mode 100644 index 0000000..21de386 --- /dev/null +++ b/yonote-chart/templates/cronjob.yaml @@ -0,0 +1,69 @@ +{{- 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" }} +apiVersion: batch/v1 +kind: CronJob +metadata: + name: cron-task-scheduler +spec: + schedule: "0 */1 * * *" + jobTemplate: + spec: + template: + spec: + containers: + - name: cron-task-scheduler + image: curlimages/curl + imagePullPolicy: IfNotPresent + envFrom: + - secretRef: + name: yonote-secrets + command: + - /bin/sh + - -c + - >- + date; + curl + -X POST + {{ .Values.global.yonote_cron_task_scheduler.url }} + -H "Content-Type: application/json" + -d ' + { + "token":"$(UTILS_SECRET)", "limit":"200" + } + ' + restartPolicy: OnFailure +{{- end }} \ No newline at end of file