Skip to content

[P2] Preserve JSON-looking pod exec output as text #19

Open

Description

@brendandburns

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.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. linked a pull request that will close this issueCover preservation of JSON-looking exec output #34on Nov 19, 2026
  3. brendandburns commented on Nov 19, 2026

    @brendandburns
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions