Skip to content

Commit 028d210

Browse files
authored
Increase HR timeout to 1h (#133)
Signed-off-by: Nitish Malhotra <[email protected]> Co-authored-by: Nitish Malhotra <[email protected]>
1 parent 91680cb commit 028d210

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/workflow/argo.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ const (
3434
)
3535

3636
var (
37-
ErrNamespaceTerminating = kerrors.New("namespace is in terminating phase")
37+
ErrNamespaceTerminating = kerrors.New("namespace is in terminating phase")
38+
timeout int64 = 3600
3839
)
3940

4041
type argo struct {
@@ -314,6 +315,7 @@ func (a *argo) generateAppDAGTemplates(ctx context.Context, g *v1alpha1.Applicat
314315
}
315316

316317
hr.Spec.Wait = boolToBoolPtr(true)
318+
hr.Spec.Timeout = &timeout
317319
hr.Spec.ReleaseName = convertToDNS1123(app.Name)
318320

319321
hr.Labels = map[string]string{
@@ -408,6 +410,7 @@ func (a *argo) generateSubchartAndAppDAGTasks(ctx context.Context, g *v1alpha1.A
408410

409411
hr.Spec.ReleaseName = convertToDNS1123(app.Name)
410412
hr.Spec.Wait = boolToBoolPtr(true)
413+
hr.Spec.Timeout = &timeout
411414

412415
hr.Labels = map[string]string{
413416
ChartLabelKey: app.Name,
@@ -509,6 +512,7 @@ func generateSubchartHelmRelease(a helmopv1.HelmReleaseSpec, appName, scName, ve
509512
}
510513

511514
hr.Spec.Wait = boolToBoolPtr(true)
515+
hr.Spec.Timeout = &timeout
512516

513517
// NOTE: Ownership label is added in the caller function
514518
hr.Spec.ChartSource.RepoChartSource = a.DeepCopy().RepoChartSource

0 commit comments

Comments
 (0)