Skip to content
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

Merged
merged 3 commits into from
Apr 6, 2022

Conversation

zqingqing1
Copy link
Member


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

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 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.

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 30, 2022

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.
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

0.5.59
++++++

* Add support for managed cluster snapshot commands and modify current nodepool snapshot commands
Copy link
Member

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...

Copy link
Contributor

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~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made the change

Comment on lines +119 to +120
raise CLIError(
"--api-server-authorized-ip-ranges cannot be disabled and simultaneously enabled")
Copy link
Contributor

@zhoxing-ms zhoxing-ms Mar 31, 2022

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

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Contributor

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

@zhoxing-ms
Copy link
Contributor

Could we use deprecate_info=c.deprecate(target='xxx', redirect='xxx', hide=True) deprecating-commands-and-arguments to hide these original commands and give users a few months to migrate their usage to new commands?
Otherwise, deleting these original commands now may cause a sudden breaking change to the users.

@zqingqing1 zqingqing1 closed this Apr 6, 2022
@zqingqing1 zqingqing1 reopened this Apr 6, 2022
@zqingqing1
Copy link
Member Author

Could we use deprecate_info=c.deprecate(target='xxx', redirect='xxx', hide=True) deprecating-commands-and-arguments to hide these original commands and give users a few months to migrate their usage to new commands? Otherwise, deleting these original commands now may cause a sudden breaking change to the users.

No, this is not deprecate the "az aks snapshot" command, the command will be used for cluster snapshot.

@wangzelin007
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wangzelin007
Copy link
Member

Please fix the live test error.
LGTM.

@FumingZhang
Copy link
Member

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.

@zhoxing-ms zhoxing-ms merged commit 815d196 into Azure:main Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants