[AKS] Add command options to toggle the run command feature on or off#31854
[AKS] Add command options to toggle the run command feature on or off#31854zhoxing-ms merged 5 commits intoAzure:devfrom
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @FumingZhang, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks create | cmd aks create added parameter disable_run_command |
||
| aks update | cmd aks update added parameter disable_run_command |
||
| aks update | cmd aks update added parameter enable_run_command |
|
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.
Pull Request Overview
This PR adds command options to toggle the run command feature on or off for AKS clusters. The run command feature allows executing commands on AKS cluster nodes, and this enhancement provides granular control over its enablement through CLI flags.
Key Changes
- Added
--disable-run-commandflag foraz aks createto disable the feature during cluster creation - Added
--enable-run-commandand--disable-run-commandflags foraz aks updateto toggle the feature post-creation - Implemented validation logic to prevent mutually exclusive flags from being used simultaneously
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| _params.py | Added parameter definitions for the new run command flags |
| _help.py | Added help documentation for the new command options |
| custom.py | Added new parameters to function signatures |
| managed_cluster_decorator.py | Implemented core logic for handling run command configuration |
| test_managed_cluster_decorator.py | Added comprehensive unit tests for the new functionality |
| test_aks_commands.py | Added integration tests for the run command feature |
|
Please fix conflicts |
e86e9f5 to
1e9b96c
Compare
…managed_cluster_decorator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Related command
az aks createaz aks updateDescription
Add command options to toggle the run command feature on or off
Testing Guide
History Notes
[AKS]
az aks create: Add new parameter--disable-run-commandto disable run command feature for the cluster[AKS]
az aks update: Add new parameters--disable-run-commandand--enable-run-commandto toggle the run command feature on or offThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.