From b6f9045eca1aee74f447e20ffa2da6028f4a80f5 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 7 Feb 2019 21:15:36 -0700 Subject: [PATCH] Retry 1000 times on helm failure --- pkg/helm/controller.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/helm/controller.go b/pkg/helm/controller.go index bb52ac2676..ca86f1e5a8 100644 --- a/pkg/helm/controller.go +++ b/pkg/helm/controller.go @@ -22,7 +22,7 @@ import ( const ( namespace = "kube-system" - image = "rancher/klipper-helm:v0.1.0" + image = "rancher/klipper-helm:v0.1.2" label = "helm.k3s.cattle.io/chart" ) @@ -123,6 +123,8 @@ func (h *handler) onRemove(chart *k3s.HelmChart) (runtime.Object, error) { } func job(chart *k3s.HelmChart) (*batch.Job, *core.ConfigMap) { + oneThousand := int32(1000) + action := "install" if chart.DeletionTimestamp != nil { action = "delete" @@ -140,6 +142,7 @@ func job(chart *k3s.HelmChart) (*batch.Job, *core.ConfigMap) { }, }, Spec: batch.JobSpec{ + BackoffLimit: &oneThousand, Template: core.PodTemplateSpec{ ObjectMeta: meta.ObjectMeta{ Labels: map[string]string{