-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the cli command option for --pod-ip-allocation-mode for cluste…
…r creation and nodepool addition in AKS (#7288) * Adding the cli command option for --pod-ip-allocation-mode * Added all the fields to read and populate the pod ip allocation mode from the az aks create and az aks nodepool commands with validations * Addressed all the code review comments by removing the Unassigned from the CLI, use the raw_param as the source of truth else fallback on agentpool config * Added a UT for the new podIPAllocationProperty * Added the new UT to be called on the required decorators * Added a live test case for podIPAllocationMode and creating a StaticBlock cluster * Added the necessary space * Simplified the logic to read from the agentpool profile if the value exists else deafault to the value provided by the user in the command line * Trying to fix the linter issues * Updated the code to adhere to the azdev styles * Fixed errors to adhere to the azdev styles * Attempting to not initialize any pod-ip-allocation-mode by default and then attach an agentpool with StaticBlock * Fixed param list * Adding the live only tag for the live test added * Fixed the missing '-' from the max-pods argument * Attempting to fix the resource ID for the node subnet * Attempting to fix the resource ID for the node subnet * Fixed the property name of the agentpoolprofile * Updated the expected value for podSubnetID * Added the logic to add the podIPAllocationMode to the agentpool network profile which was what was failing the CI * Removed the reference to agentpool network profile * Added a test case for managed_cluster properties generation * Added methods to update the pod ip allocation mode property of the agentpool to both the create and update methods * Fixing the variable name in the live test aks_name * Added the live test recording to the PR * Updated the PR based on the review comments to reorder the logic in the 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. * Updated the test cases based on the suggestions made in the PR review * Upated the History and setup.py files after rebasing to merge the new property in the next version * Fixed the assertion value * Fixed the azdev styles issue * Removed the liveonly tag * Excluding the test from the live test as it requires feature registration * Update src/aks-preview/azext_aks_preview/_help.py based on the suggested change Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com> * Update src/aks-preview/azext_aks_preview/_help.py to use first-person voice. Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com> --------- Co-authored-by: Ashish Nair <ashish.nair@microsoft.com> Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
- Loading branch information
1 parent
7b2ba86
commit c4eaa7d
Showing
13 changed files
with
2,309 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.