Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Sep 30, 2024
1 parent 879f40c commit b8eaaac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/internal/packager/helm/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ func (h *Helm) InstallOrUpgradeChart(ctx context.Context) (types.ConnectStrings,
})
}
if !h.chart.NoWait {
// This effectively doubles the amount of time a timeout can take
// 15 minute timeout -> 14 minutes to install -> another 14 minutes of waiting
// This could be avoided by creating the context in the start of the retry loop
// Technically would be a breaking change, in practice this is unlikely to affect anyone
healthChecksCtx, cancel := context.WithTimeout(ctx, h.timeout)
defer cancel()
spinner.Updatef("Running health checks")
Expand Down

0 comments on commit b8eaaac

Please sign in to comment.