Skip to content

connectedk8s v1.11.3 Release - #10242

Open
john mccormick (jmccormick7) wants to merge 4 commits into
Azure:mainfrom
AzureArcForKubernetes:release/v1.11.3
Open

connectedk8s v1.11.3 Release#10242
john mccormick (jmccormick7) wants to merge 4 commits into
Azure:mainfrom
AzureArcForKubernetes:release/v1.11.3

Conversation

@jmccormick7

@jmccormick7 john mccormick (jmccormick7) commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

Emergency fix for environments using kubernetes client 36.0.

Root cause is an encoding bug in the api client for container logs: kubernetes-client/python#2596

This release fixes an issue from a bug in the kubernetes client 36.0 that is not caught by the extension blocking onboarding for customers with this environment setup.


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

…cks (#77)

* possible fix

* normalize container log prior to reading

* update test to test negative condition

* add container_log.strip() to remove leading spaces

---------

Co-authored-by: John McCormick <mccormickjo@microsoft.com>
Copilot AI lite review requested due to automatic review settings August 21, 2026 17:55
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi john mccormick (@jmccormick7),
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Emergency connectedk8s release bump to v1.11.3 to address onboarding/troubleshooting failures caused by Kubernetes Python client 36.x returning container logs as bytes / stringified-bytes, which previously broke log parsing.

Changes:

  • Bumped extension version to 1.11.3 and added a corresponding HISTORY entry.
  • Added _logutils.py with normalize_container_log / split_container_log helpers to consistently decode/normalize pod logs.
  • Updated precheck/troubleshoot flows (and added unit tests) to use the new helpers when parsing and persisting container logs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/connectedk8s/setup.py Version bump to 1.11.3 for the emergency release.
src/connectedk8s/HISTORY.rst Added 1.11.3 release note describing the client-36.x parsing fix.
src/connectedk8s/azext_connectedk8s/tests/unittests/test_precheckutils.py Added unit coverage for parsing bytes and stringified-bytes log outputs.
src/connectedk8s/azext_connectedk8s/_troubleshootutils.py Normalizes pod logs before writing/parsing; uses splitlines-safe log splitting.
src/connectedk8s/azext_connectedk8s/_precheckutils.py Normalizes diagnostic job logs and uses robust line splitting; writes UTF-8 explicitly.
src/connectedk8s/azext_connectedk8s/_logutils.py New shared utilities to normalize and split container logs safely across client versions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

return result


def test_completed_job_parses_healthy_1_36_1_output(monkeypatch):
Comment on lines +486 to +488
escaped_output = repr(CONFORMANCE_PREDIAGNOSTIC_OUTPUT.encode("utf-8"))
print(f"Stringified Kubernetes log: {escaped_output}")

Comment thread src/connectedk8s/HISTORY.rst Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants