-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[AKS] az aks nodepool add/update/upgrade
: Add new parameter --drain-timout
to slow down the upgrade
#27475
Conversation
🔄AzureCLI-FullTest
|
❌AzureCLI-BreakingChangeTest
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
az aks nodepool add/update/upgreade
: Add new parameter --drain-timout
to slow down the upgrade
Co-authored-by: Max Horstmann <[email protected]>
az aks nodepool add/update/upgreade
: Add new parameter --drain-timout
to slow down the upgradeaz aks nodepool add/update/upgrade
: Add new parameter --drain-timout
to slow down the upgrade
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.
LGTM
Please fix the style issues
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/_help.py:1485:92: W291 trailing whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/_help.py:1485:92: W291 trailing whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:933:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1491:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1754:58: E261 at least two spaces before inline comment
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1754:59: E262 inline comment should start with '# '
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1760:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:933:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1491:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1754:58: E261 at least two spaces before inline comment
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1754:59: E262 inline comment should start with '# '
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py:1760:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/custom.py:2345:5: E303 too many blank lines (2)
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/custom.py:2345:5: E303 too many blank lines (2)
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py
Show resolved
Hide resolved
fixed (forgot style was seperate from lint. miss gofmt) |
@paulgmiller still have some style issues |
Sorry apologize @FumingZhang for the multiple iterations. On my local machine azdev style acs flake8 spits out thosands of errors so have to use the online build to catch these which is slow. All checks are green now. |
@zhoxing-ms are you or @yonzhan able to complete this? @FumingZhang is out for a week but already gave his lgtm and max reviewed from aks side and all checks are passing. |
Co-authored-by: Yan Zhu <[email protected]>
if ( | ||
self.agentpool and | ||
self.agentpool.upgrade_settings and | ||
self.agentpool.upgrade_settings.drain_timeout is not None |
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.
@paulgmiller @FumingZhang ^^^ shouldn't that be
self.agentpool.upgrade_settings.drain_timeout_in_minutes is not None
?
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.
Sigh I miss static typing.
Related command
az aks nodepool add|update|upgrade
Description
This allows the customer to cofigure time we wait for a node to drain before failing an upgrade operation
This became available in the 07-01 api.
Testing Guide
Same tests as extension create and update with nodeos upgrade channel. Make sure its preserved. Combine with upgrade chennel
History Notes
[AKS]
az aks nodepool add/update/upgrade
: Add new parameter--drain-timout
to slow down the upgradeThis 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.