-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add mc snapshot command and change nodepool snapshot #4594
Conversation
aks |
@@ -206,9 +206,12 @@ def load_arguments(self, _): | |||
c.argument('host_group_id', | |||
validator=validate_host_group_id, is_preview=True) | |||
c.argument('crg_id', validator=validate_crg_id, is_preview=True) | |||
c.argument('message_of_the_day', type=str) # no validation for aks create because it already only supports Linux. |
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.
why so many irrelevant changes in many files? without these changes, will Style or linter checks fail?
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.
linter didn't fail. And the style change auto-saved.
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
src/aks-preview/HISTORY.md
Outdated
0.5.59 | ||
++++++ | ||
|
||
* Add support for managed cluster snapshot commands and modify current nodepool snapshot commands |
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.
Maybe it's better to remind user there's a breaking change. What used to be the aks snapshot
command is now the aks nodepool snapshot
command.
However, this may also confuse users more...
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.
This is a good suggestion! @zqingqing1 Please take a look~
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.
made the change
raise CLIError( | ||
"--api-server-authorized-ip-ranges cannot be disabled and simultaneously enabled") |
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.
Please use the specific error type (such as InvalidArgumentValueError
or ArgumentUsageError
) instead of CLIError
. There are several similar issues below, I won't comment again
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.
This is not my change, but when saving file, my linter automatically formatted it with extra line.
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 wouldn't change the error type here, since it is not related to my change. I want to make this PR clean and simple.
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.
OK, please submit a separate PR to refine the code here
Could we use |
No, this is not deprecate the "az aks snapshot" command, the command will be used for cluster snapshot. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Please fix the live test error. |
Oh, the failed check AZCLI AKS LIVE TEST V2 - [COMPATIBILITY] should be a known issue unrelated to this PR, I'll open another PR to fix it. |
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)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 PR is merged into master branch, a new PR will be created to update
src/index.json
automatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json
.