mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Merge pull request #95234 from jayunit100/remove-7kb-log-message
print out the raw pod json instead of the whole golang struct
This commit is contained in:
@@ -313,7 +313,9 @@ func (config *NetworkingTestConfig) GetEndpointsFromContainer(protocol, containe
|
|||||||
// we confirm unreachability.
|
// we confirm unreachability.
|
||||||
framework.Logf("Failed to execute %q: %v, stdout: %q, stderr: %q", cmd, err, stdout, stderr)
|
framework.Logf("Failed to execute %q: %v, stdout: %q, stderr: %q", cmd, err, stdout, stderr)
|
||||||
} else {
|
} else {
|
||||||
framework.Logf("Tries: %d, in try: %d, stdout: %v, stderr: %v, command run in: %#v", tries, i, stdout, stderr, config.TestContainerPod)
|
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)
|
||||||
|
framework.Logf("Tries: %d, in try: %d, stdout: %v, stderr: %v, command run in Pod { %#v }", tries, i, stdout, stderr, podInfo)
|
||||||
|
|
||||||
var output NetexecDialResponse
|
var output NetexecDialResponse
|
||||||
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
|
if err := json.Unmarshal([]byte(stdout), &output); err != nil {
|
||||||
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",
|
framework.Logf("WARNING: Failed to unmarshal curl response. Cmd %v run in %v, output: %s, err: %v",
|
||||||
|
Reference in New Issue
Block a user