Skip to content

Commit 12e799d

Browse files
author
Kalen Wessel
committed
Add WithIgnoreMutationWebhook() to generateDiff function, this way we can have things like kyverno report back failed policy checks
1 parent 1092924 commit 12e799d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/checks/diff/diff.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ func generateDiff(ctx context.Context, request checks.Request, argoSettings *set
206206
WithDiffSettings(request.App.Spec.IgnoreDifferences, overrides, ignoreAggregatedRoles, ignoreNormalizerOpts).
207207
WithTracking(argoSettings.AppLabelKey, argoSettings.TrackingMethod).
208208
WithNoCache().
209+
WithIgnoreMutationWebhook(true).
209210
Build()
210211
if err != nil {
211212
telemetry.SetError(span, err, "Build Diff")

0 commit comments

Comments
 (0)