From 881962e32de7944afa15f01ed717fb03c95db0dc Mon Sep 17 00:00:00 2001 From: Karolis Rusenas Date: Fri, 14 Dec 2018 09:38:54 +0000 Subject: [PATCH] fixed a problem with helm approvals not getting default deadline --- provider/helm/approvals.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provider/helm/approvals.go b/provider/helm/approvals.go index a7e08d68f..19f8246ad 100644 --- a/provider/helm/approvals.go +++ b/provider/helm/approvals.go @@ -51,6 +51,10 @@ func (p *Provider) isApproved(event *types.Event, plan *UpdatePlan) (bool, error if err != nil { if err == cache.ErrNotFound { + if plan.Config.ApprovalDeadline == 0 { + plan.Config.ApprovalDeadline = types.KeelApprovalDeadlineDefault + } + // creating new one approval := &types.Approval{ Provider: types.ProviderTypeHelm,