Merge pull request #114357 from dengyufeng2206/1208pull

Log spelling formatting
This commit is contained in:
Kubernetes Prow Robot
2023-03-09 21:33:22 -08:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -376,7 +376,7 @@ func (a *Admission) ValidatePod(ctx context.Context, attrs api.Attributes) *admi
}
oldPod, ok := oldObj.(*corev1.Pod)
if !ok {
klog.InfoS("failed to assert old pod type", "type", reflect.TypeOf(oldObj))
klog.InfoS("Failed to assert old pod type", "type", reflect.TypeOf(oldObj))
a.Metrics.RecordError(true, attrs)
return errorResponse(nil, &apierrors.NewBadRequest("failed to decode old pod").ErrStatus)
}