Skip to content

Commit

Permalink
Increase HR timeout to 1h (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Nitish Malhotra <[email protected]>

Co-authored-by: Nitish Malhotra <[email protected]>
  • Loading branch information
nitishm and nitishm authored Mar 25, 2021
1 parent 91680cb commit 028d210
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/workflow/argo.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const (
)

var (
ErrNamespaceTerminating = kerrors.New("namespace is in terminating phase")
ErrNamespaceTerminating = kerrors.New("namespace is in terminating phase")
timeout int64 = 3600
)

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

hr.Spec.Wait = boolToBoolPtr(true)
hr.Spec.Timeout = &timeout
hr.Spec.ReleaseName = convertToDNS1123(app.Name)

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

hr.Spec.ReleaseName = convertToDNS1123(app.Name)
hr.Spec.Wait = boolToBoolPtr(true)
hr.Spec.Timeout = &timeout

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

hr.Spec.Wait = boolToBoolPtr(true)
hr.Spec.Timeout = &timeout

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

0 comments on commit 028d210

Please sign in to comment.