You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P2] Preserve JSON-looking pod exec output as text #19
Upstream: kubernetes-client#1032
Priority: P2 (output correctness; current reproduction required)
Exec output consisting entirely of JSON is reported to be parsed and returned as a Python-style string representation, making subsequent json.loads() fail. Output containing extra text is reported to behave differently. This is an old report and must be verified on the current client.
Reproduce with output such as {"example":"json","with":null,"and":true} and trace the stream/response deserialization path. Command output should not change solely because it resembles JSON.
Acceptance criteria:
Preserve exact text, including JSON booleans/null, quoting, whitespace, and newlines.
Cover ordinary non-JSON output and preserve binary/raw streaming behavior.
If already fixed, document the current passing reproduction rather than changing unrelated deserialization logic.
Clarification to the original assignment: this task's designated agent/base branch is agent/p2-issue-19. Raise/target the PR against that branch, not master; the existing draft PR has been retargeted accordingly. Keep the requested commit order: first a test-only commit demonstrating the issue, then a separate fix commit only if reproduced. If it does not reproduce, leave the evidence/test commit and explain why no fix is appropriate.
Activity
brendandburns commentedon Nov 19, 2026
Clarification to the original assignment: this task's designated agent/base branch is
agent/p2-issue-19. Raise/target the PR against that branch, notmaster; the existing draft PR has been retargeted accordingly. Keep the requested commit order: first a test-only commit demonstrating the issue, then a separate fix commit only if reproduced. If it does not reproduce, leave the evidence/test commit and explain why no fix is appropriate.