Skip to content

Commit 3536a48

Browse files
authored
Merge pull request kubernetes#95234 from jayunit100/remove-7kb-log-message
print out the raw pod json instead of the whole golang struct
2 parents 1b4fa94 + 4c52ce7 commit 3536a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/framework/network/utils.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ func (config *NetworkingTestConfig) GetEndpointsFromContainer(protocol, containe
313313
// we confirm unreachability.
314314
framework.Logf("Failed to execute %q: %v, stdout: %q, stderr: %q", cmd, err, stdout, stderr)
315315
} else {
316-
framework.Logf("Tries: %d, in try: %d, stdout: %v, stderr: %v, command run in: %#v", tries, i, stdout, stderr, config.TestContainerPod)
316+
podInfo := fmt.Sprintf("name: %v, namespace: %v, hostIp: %v, podIp: %v, conditions: %v", config.TestContainerPod.Name, config.TestContainerPod.Namespace, config.TestContainerPod.Status.HostIP, config.TestContainerPod.Status.PodIP, config.TestContainerPod.Status.Conditions)
317+
framework.Logf("Tries: %d, in try: %d, stdout: %v, stderr: %v, command run in Pod { %#v }", tries, i, stdout, stderr, podInfo)
318+
317319
var output NetexecDialResponse
318320
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
319321
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",

0 commit comments

Comments
 (0)