Commit cd4f6edf authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #47017 from zhangxiaoyu-zidif/fix-name-print-type

Automatic merge from submit-queue Fix print type of podname **What this PR does / why we need it**: It is better to change it to %s. According to context and other prints of this file, pod name's print type are all %s, except this one. Although it does not affect the result. **Release note**: ```release-note NONE ```
parents 4e3d37c0 52b546ee
...@@ -481,7 +481,7 @@ func TestPodLimitFuncApplyDefault(t *testing.T) { ...@@ -481,7 +481,7 @@ func TestPodLimitFuncApplyDefault(t *testing.T) {
testPod := validPodInit(validPod("foo", 1, getResourceRequirements(api.ResourceList{}, api.ResourceList{})), getResourceRequirements(api.ResourceList{}, api.ResourceList{})) testPod := validPodInit(validPod("foo", 1, getResourceRequirements(api.ResourceList{}, api.ResourceList{})), getResourceRequirements(api.ResourceList{}, api.ResourceList{}))
err := PodLimitFunc(&limitRange, &testPod) err := PodLimitFunc(&limitRange, &testPod)
if err != nil { if err != nil {
t.Errorf("Unexpected error for valid pod: %v, %v", testPod.Name, err) t.Errorf("Unexpected error for valid pod: %s, %v", testPod.Name, err)
} }
for i := range testPod.Spec.Containers { for i := range testPod.Spec.Containers {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment