Skip to content

Conversation

@bingosummer
Copy link
Member


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 wheel==0.30.0 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.

Copilot AI review requested due to automatic review settings November 4, 2025 06:08
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 4, 2025

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 4, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link

github-actions bot commented Nov 4, 2025

@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Nov 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables PMK (Platform-Managed Keys) to be activated on AKS clusters that previously had CMK (Customer-Managed Keys) disabled, ensuring proper cleanup of stale CMK properties.

  • Version bump from 19.0.0b10 to 19.0.0b11
  • Modified update_kms_pmk_cmk() to clear CMK properties when enabling PMK on CMK-disabled clusters
  • Added comprehensive test coverage for the new scenario

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
setup.py Version bump to 19.0.0b11
managed_cluster_decorator.py Added logic to detect and clear stale CMK properties when enabling PMK on CMK-disabled clusters
test_managed_cluster_decorator.py Added unit test verifying CMK property cleanup when enabling PMK on CMK-disabled cluster
test_aks_commands.py Added end-to-end integration test for the CMK → disable CMK → enable PMK workflow
HISTORY.rst Updated changelog with new version and feature description

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

… other CMK properties when enable PMK on a CMK-disabled cluster
@bingosummer bingosummer force-pushed the binxi/aks-k2p-disable-cmk branch from 50ef379 to 3615ca1 Compare November 5, 2025 06:09
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Nov 5, 2025
Copy link
Member

@AbelHu AbelHu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the PR.

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

name_prefix="clitest",
location="eastus2euap",
)
def test_aks_create_with_kms_cmk_and_disable_cmk_and_update_pmk(
Copy link
Member

Choose a reason for hiding this comment

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

Live test passed!

@yanzhudd yanzhudd merged commit c6b39e7 into Azure:main Nov 6, 2025
25 checks passed
@azclibot
Copy link
Collaborator

azclibot commented Nov 6, 2025

[Release] Update index.json for extension [ aks-preview-19.0.0b11 ] : https://dev.azure.com/msazure/One/_build/results?buildId=142827702&view=results

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

Labels

AKS Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants