-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update argocd to 2.10.10 #222
Conversation
Signed-off-by: Alec Hinh <[email protected]>
Signed-off-by: Alec Hinh <[email protected]>
Signed-off-by: Alec Hinh <[email protected]>
Temporary image deleted. |
Mergecat's ReviewClick to read mergecats review!😼 Mergecat review of go.mod@@ -5,8 +5,8 @@ go 1.21
toolchain go1.21.6
require (
- github.com/argoproj/argo-cd/v2 v2.10.6
- github.com/argoproj/gitops-engine v0.7.1-0.20240411122334-1ade3a199867
+ github.com/argoproj/argo-cd/v2 v2.10.10
+ github.com/argoproj/gitops-engine v0.7.1-0.20240416142647-fbecbb86e412
github.com/cenkalti/backoff/v4 v4.3.0
github.com/chainguard-dev/git-urls v1.0.2
github.com/creasty/defaults v1.7.0
@@ -210,7 +210,7 @@ require (
github.com/sergi/go-diff v1.3.1 // indirect
github.com/shteou/go-ignore v0.3.1 // indirect
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 // indirect
- github.com/skeema/knownhosts v1.2.1 // indirect
+ github.com/skeema/knownhosts v1.2.2 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spdx/tools-golang v0.5.3 // indirect
github.com/spf13/afero v1.11.0 // indirect Feedback & Suggestions:
By following these suggestions, you can ensure that your dependency management remains robust and your application continues to function correctly and securely. 🛡️🚀 😼 Mergecat review of pkg/checks/diff/diff.go@@ -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"
@@ -14,6 +15,7 @@ import (
argoappv1 "github.com/argoproj/argo-cd/v2/pkg/apis/application/v1alpha1"
"github.com/argoproj/argo-cd/v2/util/argo"
argodiff "github.com/argoproj/argo-cd/v2/util/argo/diff"
+ "github.com/argoproj/argo-cd/v2/util/argo/normalizers"
"github.com/argoproj/gitops-engine/pkg/diff"
"github.com/argoproj/gitops-engine/pkg/sync/hook"
"github.com/argoproj/gitops-engine/pkg/sync/ignore"
@@ -196,9 +198,12 @@ func generateDiff(ctx context.Context, request checks.Request, argoSettings *set
}
ignoreAggregatedRoles := false
+ ignoreNormalizerOpts := normalizers.IgnoreNormalizerOpts{
+ JQExecutionTimeout: 1 * time.Second,
+ }
diffConfig, err := argodiff.NewDiffConfigBuilder().
WithLogger(zerologr.New(&log.Logger)).
- WithDiffSettings(request.App.Spec.IgnoreDifferences, overrides, ignoreAggregatedRoles).
+ WithDiffSettings(request.App.Spec.IgnoreDifferences, overrides, ignoreAggregatedRoles, ignoreNormalizerOpts).
WithTracking(argoSettings.AppLabelKey, argoSettings.TrackingMethod).
WithNoCache().
Build() Feedback & Suggestions:
Dependency ReviewClick to read mergecats review!No suggestions found |
Fixes #221
Upgrades the ArgoCD dependency to 2.10.10 and applies a fix for a new argument requirement introduced in the new version