Adding the cli command option for --pod-ip-allocation-mode for cluster creation and nodepool addition in AKS#7288
Conversation
❌Azure CLI Extensions Breaking Change Test
|
|
Hi @nairashu, |
|
WIP |
Removed the WIP after adding all the changes for this agentpool option. |
|
This PR is a placeholder and waiting on this property to get released in the SDK. Requesting early feedback. |
FumingZhang
left a comment
There was a problem hiding this comment.
Please add some unit test cases (see examples in test_agentpool_decorator.py) and at least one live test case (see examples in test_aks_commands.py) for the newly added option.
FumingZhang
left a comment
There was a problem hiding this comment.
Please resolve merge conflicts
I have added the requested UT and live test case. |
39f780e to
65d3140
Compare
FumingZhang
left a comment
There was a problem hiding this comment.
Please fix failed UT
FAILED src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py::AKSPreviewAgentPoolContextStandaloneModeTestCase::test_get_pod_ip_allocation_mode
FAILED src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py::AKSPreviewAgentPoolContextManagedClusterModeTestCase::test_get_pod_ip_allocation_mode
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
Merge conflicts were resolved |
|
Please fix CI issues |
|
5fd6f76 to
a2a4cf4
Compare
src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py
Outdated
Show resolved
Hide resolved
…rk profile which was what was failing the CI
…entpool to both the create and update methods
…he get method for the pod-ip-allocation-mode property and also removed the definition and call to set the property in the AgentPoolUpdateDecorator as the property option is only available in the aks create and aks nodepool add commands.
… property in the next version
7f510d6 to
d519a51
Compare
…ted change Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
… voice. Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
|
[Release] Update index.json for extension [ aks-preview ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=135128&view=results |
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az aks create -g MyResourceGroup -n MyManagedCluster --os-sku Ubuntu --max-pods MaxPodsPerNode --network-plugin azure --vnet-subnet-id /subscriptions/00000/resourceGroups/AnotherResourceGroup/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/NodeSubnet --pod-subnet-id /subscriptions/00000/resourceGroups/AnotherResourceGroup/providers/Microsoft.Network/virtualNetworks/MyVnet/subnets/PodSubnet --pod-ip-allocation-mode StaticBlock
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)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.jsonautomatically.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.