-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: OpenServiceMesh component #260
Conversation
Signed-off-by: Nicolas Lamirault <[email protected]>
Hi! It would be better to add an alias for the full name of OSM, the OpenServiceMesh. |
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
@mingrammer i use the full name, and i add an alias. |
diagrams/onprem/network.py
Outdated
@@ -54,6 +54,10 @@ class Nginx(_Network): | |||
|
|||
class Ocelot(_Network): | |||
_icon = "ocelot.png" | |||
|
|||
|
|||
class Openservicemesh(_Network): |
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.
The class name for open service mesh should be class OpenServiceMesh
. This is how autogen
script names the class:
- Split the filename by
-
delimiter and join each element after making each one as title-case. (open-service-mesh.png
will be translated toclass OpenSerivceMesh
) - If you register the component name to
TITLE_WORDS
dict, it will make the class named as a registered name regardless of filename.
So you should make the filename as open-service-mesh.png
or register the open service mesh name to TITLE_WORDS
to make the title cased class name, the class OpenServiceMesh
.
You can find TITLE_WORDS
dict in here.
Signed-off-by: Nicolas Lamirault <[email protected]>
…ture/osm * 'feature/osm' of github.com:nlamirault/diagrams: ocelot gateway add (mingrammer#263) chore(deps): bump decompress from 4.2.0 to 4.2.1 in /website (mingrammer#262)
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
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!
Signed-off-by: Nicolas Lamirault [email protected]