From bc6e32751fb42e37540ac24df5835330a25683e9 Mon Sep 17 00:00:00 2001
From: Ruaridh Williamson <ruaridh.williamson@flexciton.com>
Date: Fri, 27 Jan 2023 18:11:10 +0000
Subject: [PATCH] feat: add cronjob backoffLimit

- Expose the ability to control the backoffLimit of the cronjob to stop it running up to 7 times
---
 assets/auto-deploy-app/templates/cronjob.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/assets/auto-deploy-app/templates/cronjob.yaml b/assets/auto-deploy-app/templates/cronjob.yaml
index cc2aba3..0677ef6 100644
--- a/assets/auto-deploy-app/templates/cronjob.yaml
+++ b/assets/auto-deploy-app/templates/cronjob.yaml
@@ -29,6 +29,9 @@ items:
         {{- if $jobConfig.activeDeadlineSeconds }}
         activeDeadlineSeconds: {{ $jobConfig.activeDeadlineSeconds }}
         {{- end }}
+        {{- if $jobConfig.backoffLimit }}
+        backoffLimit: {{ $jobConfig.backoffLimit }}
+        {{- end }}
         template:
           metadata:
             annotations:
-- 
GitLab