Skip to content

Commit

Permalink
Set the JQ execution timeout parameter to its default 1s value
Browse files Browse the repository at this point in the history
Signed-off-by: Alec Hinh <[email protected]>
  • Loading branch information
ahinh43 committed May 24, 2024
1 parent 8592ba0 commit 8663d3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/checks/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"io"
"strings"
"time"

cmdutil "github.com/argoproj/argo-cd/v2/cmd/util"
"github.com/argoproj/argo-cd/v2/controller"
Expand Down Expand Up @@ -197,7 +198,9 @@ func generateDiff(ctx context.Context, request checks.Request, argoSettings *set
}

ignoreAggregatedRoles := false
ignoreNormalizerOpts := normalizers.IgnoreNormalizerOpts{}
ignoreNormalizerOpts := normalizers.IgnoreNormalizerOpts{
JQExecutionTimeout: 1 * time.Second,
}
diffConfig, err := argodiff.NewDiffConfigBuilder().
WithLogger(zerologr.New(&log.Logger)).
WithDiffSettings(request.App.Spec.IgnoreDifferences, overrides, ignoreAggregatedRoles, ignoreNormalizerOpts).
Expand Down

0 comments on commit 8663d3b

Please sign in to comment.