Merge pull request #328 from keel-hq/feature/helm_approvals_deadline

fixed a problem with helm approvals not getting default deadline
add-logo-keel-chart 0.13.0
Karolis 2018-12-14 10:22:23 +00:00 committed by GitHub
commit ac6f5d4184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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,