From 876ec68122fbb5d56c92f09c503e7c7a1c03f0da 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..24b221a4 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(True). Build() if err != nil { telemetry.SetError(span, err, "Build Diff")