Skip to content

Commit

Permalink
fixed a problem with helm approvals not getting default deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
rusenask committed Dec 14, 2018
1 parent d0fc99c commit 881962e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/helm/approvals.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 881962e

Please sign in to comment.