Skip to content

{AKS} Fix #23468: az aks nodepool wait crashes with error "'Namespace' object has no attribute 'nodepool_name'" - #5219

Merged
Xing Zhou (zhoxing-ms) merged 3 commits into
Azure:mainfrom
FumingZhang:fuming/fix-aks-nodepool-wait-0809
Aug 10, 2022
Merged

Xing Zhou (zhoxing-ms) merged 3 commits into
Azure:mainfrom
FumingZhang:fuming/fix-aks-nodepool-wait-0809

Conversation

@FumingZhang

@FumingZhang FumingZhang commented Aug 9, 2022

Copy link
Copy Markdown
Member

This checklist is used to make sure that common guidelines for a pull request are followed.

The implementation of the az aks nodepool wait command directly calls the operation provided by the SDK, and the parameter name used to identify the nodepool name is agent_pool_name, which is different from the parameter name nodepool_name in the custom implemented nodepool commands.

The fix is to add a new dedicated validator for the command. Also added some unit tests. See sibling PR #23489.

Fix issue #23468.

Related command

az aks nodepool wait

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?

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.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

@ghost ghost added this to the Aug 2022 (2022-09-06) milestone Aug 9, 2022
@ghost ghost added the Auto-Assign Auto assign by bot label Aug 9, 2022
@ghost
ghost requested a review from Yong Zhang (yonzhan) August 9, 2022 10:56
@ghost ghost added the AKS label Aug 9, 2022
@yonzhan

Copy link
Copy Markdown
Collaborator

AKS

@FumingZhang
FumingZhang force-pushed the fuming/fix-aks-nodepool-wait-0809 branch from b38215d to f61703c Compare August 10, 2022 02:39
@FumingZhang
FumingZhang marked this pull request as ready for review August 10, 2022 03:01
Comment thread src/aks-preview/azext_aks_preview/_params.py Outdated
@FumingZhang FumingZhang changed the title {AKS} az aks nodepool wait: Fix for "'Namespace' object has no attribute 'nodepool_name' error" {AKS} Fix #23468: az aks nodepool wait crashes with error "'Namespace' object has no attribute 'nodepool_name'" Aug 10, 2022
@zhoxing-ms
Xing Zhou (zhoxing-ms) merged commit 0cff8c1 into Azure:main Aug 10, 2022
@FumingZhang
FumingZhang deleted the fuming/fix-aks-nodepool-wait-0809 branch August 22, 2022 02:23
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.

4 participants