From 9be7ad40c0368c0005f047566679169f053e62c3 Mon Sep 17 00:00:00 2001
From: Valeriano Manassero
 <14011549+valeriano-manassero@users.noreply.github.com>
Date: Thu, 30 Mar 2023 11:56:57 +0200
Subject: [PATCH] Enterprise backofflimit (#198)

* Fixed: typo

* Fixed: backoff limit

* Changed: bump up version

* Changed: helm docs update
---
 charts/clearml-agent/Chart.yaml             | 6 ++++--
 charts/clearml-agent/README.md              | 4 ++--
 charts/clearml-agent/README.md.gotmpl       | 2 +-
 charts/clearml-agent/templates/_helpers.tpl | 2 +-
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/charts/clearml-agent/Chart.yaml b/charts/clearml-agent/Chart.yaml
index 363f414..44d2226 100644
--- a/charts/clearml-agent/Chart.yaml
+++ b/charts/clearml-agent/Chart.yaml
@@ -2,7 +2,7 @@ apiVersion: v2
 name: clearml-agent
 description: MLOps platform Task running agent
 type: application
-version: "4.0.4"
+version: "4.0.5"
 appVersion: "1.24"
 kubeVersion: ">= 1.21.0-0 < 1.27.0-0"
 home: https://clear.ml
@@ -21,4 +21,6 @@ keywords:
 annotations:
   artifacthub.io/changes: |
     - kind: fixed
-      description: missing init-container in template
+      description: readme
+    - kind: fixed
+      description: backoffLimit for enterprise
diff --git a/charts/clearml-agent/README.md b/charts/clearml-agent/README.md
index 9d8f77c..99c5334 100644
--- a/charts/clearml-agent/README.md
+++ b/charts/clearml-agent/README.md
@@ -1,6 +1,6 @@
 # ClearML Kubernetes Agent
 
-![Version: 4.0.4](https://img.shields.io/badge/Version-4.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.24](https://img.shields.io/badge/AppVersion-1.24-informational?style=flat-square)
+![Version: 4.0.5](https://img.shields.io/badge/Version-4.0.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.24](https://img.shields.io/badge/AppVersion-1.24-informational?style=flat-square)
 
 MLOps platform Task running agent
 
@@ -34,7 +34,7 @@ Changing values on existing installation can be done with:
 helm upgrade clearml-agent allegroai/clearml-agent --version <CURRENT CHART VERSION> -f custom_values.yaml
 ```
 
-### Major upgrade from 5.* to 6.*
+### Major upgrade from 3.* to 4.*
 
 Before issuing helm upgrade:
 
diff --git a/charts/clearml-agent/README.md.gotmpl b/charts/clearml-agent/README.md.gotmpl
index 4e71ed8..be6c6a9 100644
--- a/charts/clearml-agent/README.md.gotmpl
+++ b/charts/clearml-agent/README.md.gotmpl
@@ -31,7 +31,7 @@ Changing values on existing installation can be done with:
 helm upgrade clearml-agent allegroai/clearml-agent --version <CURRENT CHART VERSION> -f custom_values.yaml
 ```
 
-### Major upgrade from 5.* to 6.*
+### Major upgrade from 3.* to 4.*
 
 Before issuing helm upgrade:
 
diff --git a/charts/clearml-agent/templates/_helpers.tpl b/charts/clearml-agent/templates/_helpers.tpl
index 5944885..b3f66dc 100644
--- a/charts/clearml-agent/templates/_helpers.tpl
+++ b/charts/clearml-agent/templates/_helpers.tpl
@@ -274,6 +274,6 @@ Create a task container template
       spec:
         {{- $data := dict "main" $ "key" $key "value" $value -}}
         {{- include "taskContainer.containerTemplate" $data | nindent 8 }}
-    backoffLimit: 0
+    backoffLimit: 4
 {{- end }}
 {{- end }}