-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AKS] az aks nodepool update: Add GPU driver install options install and none for --gpu-driver parameter
#32531
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: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
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
This PR aims to add support for the --gpu-driver parameter to the az aks nodepool update command to address issue #32516, allowing users to set GPU driver installation mode (including "none") when updating nodepools. However, the implementation is incomplete.
Key Changes
- Adds
gpu_driverparameter registration to theaks nodepool updatecommand argument context
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| c.argument("if_match") | ||
| c.argument("if_none_match") | ||
| c.argument('localdns_config', help='Path to a JSON file to configure the local DNS profile for a new nodepool.') | ||
| c.argument('gpu_driver', arg_type=get_enum_type(gpu_driver_install_modes)) |
Copilot
AI
Dec 12, 2025
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.
Adding the gpu_driver parameter here is incomplete. This change requires three additional modifications to work correctly:
- The
aks_agentpool_updatefunction signature incustom.py(around line 2947) needs to include agpu_driver=Noneparameter - The
AKSAgentPoolUpdateDecoratorclass needs anupdate_gpu_profilemethod similar to theset_up_gpu_profilemethod inAKSAgentPoolAddDecorator(see line 2172 in agentpool_decorator.py) - The
update_agentpool_profile_defaultmethod inAKSAgentPoolUpdateDecorator(around line 2625) needs to call the newupdate_gpu_profilemethod
Without these changes, the parameter will be accepted by the CLI but won't actually update the GPU driver configuration on the nodepool.
az aks nodepool update: Add GPU driver install options install and none for --gpu-driver parameter
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
| c.argument("if_match") | ||
| c.argument("if_none_match") | ||
| c.argument('localdns_config', help='Path to a JSON file to configure the local DNS profile for a new nodepool.') | ||
| c.argument('gpu_driver', arg_type=get_enum_type(gpu_driver_install_modes)) |
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.
I believe you also need to declare this parameter in the entry function corresponding to the command, which is aks_agentpool_update in custom.py
Related command
az aks nodepool update --gpu-driver noneDescription
Addresses github issue: #32516. Users with SkipGPUDriverInstall nodepool tag should be allowed to set
--gpu-driver Noneupon nodepool update.Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis 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.