From c514a76b5e117731b03b647762a38023754079db Mon Sep 17 00:00:00 2001 From: Lars Scheibling Date: Sat, 23 Sep 2023 13:28:50 +0000 Subject: [PATCH] Added restart policy to job --- .gitlab-ci.yml | 2 +- Chart/templates/job.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 595be9b..7adb467 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ variables: - HELM_CHART_VERSION: "1.0.19" + HELM_CHART_VERSION: "1.0.20" stages: - deploy diff --git a/Chart/templates/job.yaml b/Chart/templates/job.yaml index c604b54..aa436e5 100644 --- a/Chart/templates/job.yaml +++ b/Chart/templates/job.yaml @@ -7,8 +7,10 @@ metadata: {{- include "..labels" . | nindent 4 }} cloudyne.systems/component: site-init spec: + backoffLimit: 2 template: spec: + restartPolicy: "OnFailure" affinity: {{ include "..affinity-labels" . | nindent 8 }} securityContext: fsGroup: 101