-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[AKS] az aks nodepool add/update/upgrade
: Add --max-blocked-nodes
to specify maximum number or percentage of extra nodes that are allowed to be blocked in the agent pool during an upgrade
#8787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[AKS] az aks nodepool add/update/upgrade
: Add --max-blocked-nodes
to specify maximum number or percentage of extra nodes that are allowed to be blocked in the agent pool during an upgrade
#8787
Conversation
❌Azure CLI Extensions Breaking Change Test
|
Hi @zjpjack-github, |
Thank you for your contribution! We will review the pull request and get back to you soon. |
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds support for a new --max-blocked-nodes
parameter across az aks nodepool add/update/upgrade
commands, including validation, decorator, CLI handling, tests, and documentation.
- Introduce
max_blocked_nodes
argument to command signatures and help - Implement
validate_max_blocked_nodes
and wire it into parameter loading - Extend decorator and custom logic to read and apply the new setting
- Update tests to cover validator and integration scenarios
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
File | Description |
---|---|
src/aks-preview/azext_aks_preview/tests/latest/test_validators.py | Add TestMaxBlockedNodes and new namespace for validator tests |
src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py | Add integration tests for --max-blocked-nodes on add/update |
src/aks-preview/azext_aks_preview/custom.py | Accept max_blocked_nodes in add/update/upgrade and update error messages |
src/aks-preview/azext_aks_preview/agentpool_decorator.py | Read/apply max_blocked_nodes in decorator during create/update |
src/aks-preview/azext_aks_preview/_validators.py | Implement validate_max_blocked_nodes |
src/aks-preview/azext_aks_preview/_params.py | Register max_blocked_nodes argument with its validator |
src/aks-preview/azext_aks_preview/_help.py | Document --max-blocked-nodes in CLI help |
Comments suppressed due to low confidence (1)
src/aks-preview/azext_aks_preview/custom.py:1397
- The error message is missing a slash before
--max-blocked-nodes
. It should read...max-unavailable/--max-blocked-nodes using
.
"update max-surge/drain-timeout/node-soak-duration/undrainable-node-behavior/max-unavailable-max-blocked-nodes using "
src/aks-preview/azext_aks_preview/tests/latest/test_validators.py
Outdated
Show resolved
Hide resolved
src/aks-preview/azext_aks_preview/tests/latest/test_validators.py
Outdated
Show resolved
Hide resolved
src/aks-preview/azext_aks_preview/tests/latest/test_validators.py
Outdated
Show resolved
Hide resolved
src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py
Outdated
Show resolved
Hide resolved
src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Queued live test to validate the change.
- test_aks_nodepool_max_blocked_nodes
Please fix failed CI checks |
Applied fix for failed test cases in PR #8798 |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Requeued live test in staging env |
Failed with the following error
|
Please fix failed CI checks |
please resolve merge conflict on HISTORY.rst |
@@ -9,7 +9,7 @@ | |||
|
|||
from setuptools import setup, find_packages | |||
|
|||
VERSION = "18.0.0b4" | |||
VERSION = "18.0.0b5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VERSION = "18.0.0b5" | |
VERSION = "18.0.0b6" |
failed with error
Also there's new merge conflict |
Related command
az aks nodepool add/update/upgrade --max-blocked-nodes
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally? (pip install wheel==0.30.0
required)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
.