Merge pull request #136229 from thc1006/fix/issue-136027-apiserver-error-verbosity

fix(apiserver): convert V().Error() to V().Info()
This commit is contained in:
Kubernetes Prow Robot
2026-01-17 02:31:24 +05:30
committed by GitHub

View File

@@ -415,7 +415,7 @@ func authorizeUnsafeDelete(ctx context.Context, attr admission.Attributes, authz
decision, reason, err := authz.Authorize(ctx, record)
if err != nil {
err = fmt.Errorf("error while checking permission for %q, %w", record.Verb, err)
klog.FromContext(ctx).V(1).Error(err, "failed to authorize")
klog.FromContext(ctx).V(1).Info("failed to authorize", "err", err)
return admission.NewForbidden(attr, err)
}
if decision == authorizer.DecisionAllow {