Log spelling formatting

This commit is contained in:
dengyufeng2206 2022-12-08 15:02:19 +08:00
parent d98e9620e3
commit 8525cfab02
3 changed files with 3 additions and 3 deletions

View File

@ -755,7 +755,7 @@ func buildContainerMapFromRuntime(ctx context.Context, runtimeService internalap
containerList, _ := runtimeService.ListContainers(ctx, nil) containerList, _ := runtimeService.ListContainers(ctx, nil)
for _, c := range containerList { for _, c := range containerList {
if _, exists := podSandboxMap[c.PodSandboxId]; !exists { if _, exists := podSandboxMap[c.PodSandboxId]; !exists {
klog.InfoS("no PodSandBox found for the container", "podSandboxId", c.PodSandboxId, "containerName", c.Metadata.Name, "containerId", c.Id) klog.InfoS("No PodSandBox found for the container", "podSandboxId", c.PodSandboxId, "containerName", c.Metadata.Name, "containerId", c.Id)
continue continue
} }
containerMap.Add(podSandboxMap[c.PodSandboxId], c.Metadata.Name, c.Id) containerMap.Add(podSandboxMap[c.PodSandboxId], c.Metadata.Name, c.Id)

View File

@ -82,7 +82,7 @@ func NewHollowProxyOrDie(
if useRealProxier { if useRealProxier {
nodeIP := utilnode.GetNodeIP(client, nodeName) nodeIP := utilnode.GetNodeIP(client, nodeName)
if nodeIP == nil { if nodeIP == nil {
klog.InfoS("can't determine this node's IP, assuming 127.0.0.1") klog.InfoS("Can't determine this node's IP, assuming 127.0.0.1")
nodeIP = netutils.ParseIPSloppy("127.0.0.1") nodeIP = netutils.ParseIPSloppy("127.0.0.1")
} }
// Real proxier with fake iptables, sysctl, etc underneath it. // Real proxier with fake iptables, sysctl, etc underneath it.

View File

@ -376,7 +376,7 @@ func (a *Admission) ValidatePod(ctx context.Context, attrs api.Attributes) *admi
} }
oldPod, ok := oldObj.(*corev1.Pod) oldPod, ok := oldObj.(*corev1.Pod)
if !ok { 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) a.Metrics.RecordError(true, attrs)
return errorResponse(nil, &apierrors.NewBadRequest("failed to decode old pod").ErrStatus) return errorResponse(nil, &apierrors.NewBadRequest("failed to decode old pod").ErrStatus)
} }