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: OpenServiceMesh component #260

Merged
merged 8 commits into from
Sep 16, 2020
Merged

Conversation

nlamirault
Copy link
Contributor

Signed-off-by: Nicolas Lamirault [email protected]

Signed-off-by: Nicolas Lamirault <[email protected]>
@mingrammer
Copy link
Owner

mingrammer commented Sep 5, 2020

Hi!

It would be better to add an alias for the full name of OSM, the OpenServiceMesh.

Reference

@mingrammer mingrammer added comp/node Issue of node component kind/feat/icon Icon request labels Sep 5, 2020
@nlamirault
Copy link
Contributor Author

@mingrammer i use the full name, and i add an alias.

@@ -54,6 +54,10 @@ class Nginx(_Network):

class Ocelot(_Network):
_icon = "ocelot.png"


class Openservicemesh(_Network):
Copy link
Owner

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:

  1. Split the filename by - delimiter and join each element after making each one as title-case. (open-service-mesh.png will be translated to class OpenSerivceMesh)
  2. 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]>
Copy link
Owner

@mingrammer mingrammer left a comment

Choose a reason for hiding this comment

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

LGTM!

@mingrammer mingrammer merged commit d46cefe into mingrammer:master Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp/node Issue of node component kind/feat/icon Icon request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants