Skip to content

{k8s-extension} Migrate code to aaz-based implementation - #10407

Open
William (william051200) wants to merge 6 commits into
Azure:mainfrom
william051200:migrate-k8s
Open

William (william051200) wants to merge 6 commits into
Azure:mainfrom
william051200:migrate-k8s

Conversation

@william051200

Copy link
Copy Markdown
Member

Migration from mgmt.compute to aaz-based
Update minCliCoreVersion as VMListSizes only available since CLI 2.69.0


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.

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.

Copilot review overview

🟢 Approval recommended

The AAZ invocation and output handling are correct, version requirements are aligned, and tests cover both validation outcomes.

Review effort: Balanced
Findings: None

What changed in this PR

Migrates virtual-node VM-size validation from the Compute SDK to Azure CLI’s AAZ implementation.

Changes:

  • Uses VMListSizes with dictionary-based results.
  • Adds validation unit tests.
  • Bumps extension and minimum CLI versions.
File Description
setup.py Bumps version to 1.9.2.
HISTORY.rst Records the AAZ migration.
test_virtual_nodes.py Tests qualifying and non-qualifying pools.
VirtualNodes.py Replaces Compute SDK VM-size lookup with AAZ.
azext_metadata.json Requires Azure CLI 2.69.0.

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

@yonzhan

Copy link
Copy Markdown
Collaborator

k8s-extension

@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

@william051200

Copy link
Copy Markdown
Member Author

/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

Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants