mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
fix 'go vet' warnings
This commit is contained in:
@@ -390,7 +390,7 @@ func fieldPath(pod *api.BoundPod, container *api.Container) (string, error) {
|
||||
for i := range pod.Spec.Containers {
|
||||
here := &pod.Spec.Containers[i]
|
||||
if here == container {
|
||||
return fmt.Sprintf("spec.containers[%n]", i), nil
|
||||
return fmt.Sprintf("spec.containers[%d]", i), nil
|
||||
}
|
||||
}
|
||||
return "", fmt.Errorf("container %#v not found in pod %#v", container, pod)
|
||||
|
Reference in New Issue
Block a user