Skip to content

Commit

Permalink
Add WithIgnoreMutationWebhook() to generateDiff function, this way we…
Browse files Browse the repository at this point in the history
… can have things like kyverno report back failed policy checks
  • Loading branch information
Kalen Wessel committed Dec 4, 2024
1 parent 1092924 commit 876ec68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/checks/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ func generateDiff(ctx context.Context, request checks.Request, argoSettings *set
WithDiffSettings(request.App.Spec.IgnoreDifferences, overrides, ignoreAggregatedRoles, ignoreNormalizerOpts).
WithTracking(argoSettings.AppLabelKey, argoSettings.TrackingMethod).
WithNoCache().
WithIgnoreMutationWebhook(True).
Build()
if err != nil {
telemetry.SetError(span, err, "Build Diff")
Expand Down

0 comments on commit 876ec68

Please sign in to comment.