From ec511a963e4fe3ac88d789f54ec95d1dadfc841e Mon Sep 17 00:00:00 2001 From: Kalen Wessel Date: Wed, 4 Dec 2024 11:56:08 -0800 Subject: [PATCH] Add WithIgnoreMutationWebhook() to generateDiff function, this way we can have things like kyverno report back failed policy checks --- pkg/checks/diff/diff.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/checks/diff/diff.go b/pkg/checks/diff/diff.go index 8d84d46c..6a12e275 100644 --- a/pkg/checks/diff/diff.go +++ b/pkg/checks/diff/diff.go @@ -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(false). Build() if err != nil { telemetry.SetError(span, err, "Build Diff")