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

[Spring Cloud] Add service registry related commands for Enterprise #4255

Merged
merged 5 commits into from
Dec 30, 2021

Conversation

ninpan-ms
Copy link
Contributor

@ninpan-ms ninpan-ms commented Dec 24, 2021


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

  • 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 Dec 24, 2021

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))
Copy link
Member

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 ?

Copy link
Contributor Author

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))
Copy link
Member

Choose a reason for hiding this comment

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

Same.

@zhoxing-ms zhoxing-ms merged commit 3b632bb into Azure:main Dec 30, 2021
@ninpan-ms
Copy link
Contributor Author

#4294

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.

5 participants