-
Notifications
You must be signed in to change notification settings - Fork 17
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
Proposal for git repo based definition file format #124
Comments
Many thanks for the proposal. Agreed, defining such a format is a great way to use the tool. I will implement REST API call for importing of such a file as a first thing. I will define additional security role ("import") for scraper. This role together with "ADMIN" role be allowed to call this API and import such a descriptors. I will also make "name" attribute unique, so it will be possible to reuse existing services during import. Than we can write small scraper in a separate repo. I like the idea of not introducing security breach by directly incorporating scraper into microservice-catalog itself. |
I'm less useful as a java developer, but I can work on a simple scraper (likely in go). |
Documentation is available here: https://github.com/tillias/microservice-catalog/wiki/Import-microservices There is now new REST API available, which can be called from scraper. I will implement read-only mode using role-base approach as defined in #92. E.g. ROLE_USER can only view stuff, ROLE_IMPORT as implemented in this ticket can import, and ROLE_ADMIN can do anything. @schmidtw can you please check it out and provide feedback please? For scraper functionality I have created separate ticket #127 |
Import microservices and it's dependent ones using API #124
For many of the services, teams will likely want to update and maintain the data about it right next to the source code / deployment code. If the program accepts something like an array of the files as the "database" of services then we can make creating the fully populated list the problem of outside this program.
Here is an example of a
.microservice-catalog
JSON file that defines many of the relationships as well as interesting data about the service.For common things like
aws.sns.us-east-1
a user might want to declare a simple set of common services that others can easily refer. This could be in the form of multiple files in a single configured directory, a single file, etc. For example:For microservice-catalog, discovery would be relatively simple & focus on a set of directories & files to walk to resolve all the dependencies from.
The text was updated successfully, but these errors were encountered: