mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
feat(deployment): add cron support
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{{ - if .Values.cron.enabled }}
|
{{- if .Values.cron.enabled }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
@@ -22,4 +22,4 @@ spec:
|
|||||||
- "%{http_code}"
|
- "%{http_code}"
|
||||||
- "{{ printf "%s://%s.%s.svc.cluster.local" .Values.cron.scheme .Values.app.name .Release.Namespace | quote }}{{ .Values.cron.endpoint }}"
|
- "{{ printf "%s://%s.%s.svc.cluster.local" .Values.cron.scheme .Values.app.name .Release.Namespace | quote }}{{ .Values.cron.endpoint }}"
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{ - end }}
|
{{- end }}
|
||||||
Reference in New Issue
Block a user