From 21305f18e21dd0e47f2bc04900589efadb55ee29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Tue, 11 Nov 2025 13:54:45 +0100 Subject: [PATCH] feat(deployment): add cron support --- 7project/charts/myapp-chart/templates/cron.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/7project/charts/myapp-chart/templates/cron.yaml b/7project/charts/myapp-chart/templates/cron.yaml index 5c57284..6f5033f 100644 --- a/7project/charts/myapp-chart/templates/cron.yaml +++ b/7project/charts/myapp-chart/templates/cron.yaml @@ -1,4 +1,4 @@ -{{ - if .Values.cron.enabled }} +{{- if .Values.cron.enabled }} apiVersion: batch/v1 kind: CronJob metadata: @@ -22,4 +22,4 @@ spec: - "%{http_code}" - "{{ printf "%s://%s.%s.svc.cluster.local" .Values.cron.scheme .Values.app.name .Release.Namespace | quote }}{{ .Values.cron.endpoint }}" restartPolicy: OnFailure -{{ - end }} \ No newline at end of file +{{- end }} \ No newline at end of file