diff --git a/pkg/admission/utils.go b/pkg/admission/utils.go index b3b11529f..9ed5adb0c 100644 --- a/pkg/admission/utils.go +++ b/pkg/admission/utils.go @@ -110,5 +110,10 @@ func logAdmissionRequest(ctx context.Context) { if err != nil { return } + + // Remove all objects from the log + admissionRequest.Object.Raw = nil + admissionRequest.OldObject.Raw = nil + ctrl.Log.Info("AdmissionRequest", "Request", admissionRequest) }