-
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
[Spring Cloud] Add service registry related commands for Enterprise #4255
Conversation
9fdae4f
to
00ae939
Compare
Spring Cloud |
|
||
def only_support_enterprise(cmd, namespace): | ||
if namespace.resource_group and namespace.service and not is_enterprise_tier(cmd, namespace.resource_group, namespace.service): | ||
raise CLIError("'{}' only supports for Enterprise tier Spring instance.".format(namespace.command)) |
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.
Could you please use a specific error type instead of CLIError ?
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.
updated
|
||
def not_support_enterprise(cmd, namespace): | ||
if namespace.resource_group and namespace.service and is_enterprise_tier(cmd, namespace.resource_group, namespace.service): | ||
raise CLIError("'{}' doesn't support for Enterprise tier Spring instance.".format(namespace.command)) |
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.
Same.
a3f4859
to
f230d55
Compare
Description
The pr is part of main...VSChina:enterprise.
This PR adds "az spring-cloud service-registry" command groups, including three commands:
az spring-cloud service-registry show -s xx -g xx
Show the properties of service registry,
az spring-cloud service-registry bind -s xx -g xx --app
Bind an app to service registry
az spring-cloud service-registry unbind -s xx -g xx --app
Unind an app to service registry
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
.