Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better represent structure in mermaid graph (#263)
This better represents the action and action relationship lookups in mermaid graphs. Before: ```mermaid erDiagram rolebinding }o--o{ rolev2 : role rolebinding }o--o{ user : subject rolebinding }o--o{ client : subject rolebinding }o--o{ group : subject user { id_prefix idntusr } client { id_prefix idntclt } role { id_prefix permrol } role }o--o{ subject: subject tenant { id_prefix tnntten } tenant }o--o{ tenant: parent tenant }o--o{ rolebinding: grant group { id_prefix idntgrp subgroup_action member } group }o--o{ rolebinding: grant group }o--o{ group: parent group }o--o{ tenant: parent group }o--o{ user: direct_member group }o--o{ client: direct_member group }o--o{ group: subgroup loadbalancer { id_prefix loadbal action loadbalancer_get action loadbalancer_update action loadbalancer_delete } loadbalancer }o--o{ resourceowner: owner loadbalancer }o--o{ rolebinding: grant resourceowner { } resourceowner ||--|| tenant: alias resourcemanager { action role_create action role_get action role_list action role_update action role_delete action loadbalancer_create action loadbalancer_get action loadbalancer_list action loadbalancer_update action loadbalancer_delete } resourcemanager ||--|| tenant: alias resourcemanager ||--|| group: alias subject { } subject ||--|| user: alias subject ||--|| client: alias ``` After: ```mermaid erDiagram rolebinding }o--o{ rolev2 : role rolebinding }o--o{ user : subject rolebinding }o--o{ client : subject rolebinding }o--o{ group : subject user { id_prefix idntusr } client { id_prefix idntclt } role { id_prefix permrol } role }o--o{ subject: subject tenant { id_prefix tnntten } tenant }o--o{ tenant: parent tenant }o--o{ rolebinding: grant group { id_prefix idntgrp action member "direct_member> | subgroup>member" } group }o--o{ rolebinding: grant group }o--o{ group: parent group }o--o{ tenant: parent group }o--o{ user: direct_member group }o--o{ client: direct_member group }o--o{ group: subgroup loadbalancer { id_prefix loadbal action loadbalancer_delete "self" action loadbalancer_get "self" action loadbalancer_update "self" } loadbalancer }o--o{ resourceowner: owner loadbalancer }o--o{ rolebinding: grant resourceowner { } resourceowner ||--|| tenant: alias resourcemanager { action loadbalancer_create "self" action loadbalancer_delete "self" action loadbalancer_get "self" action loadbalancer_list "self" action loadbalancer_update "self" action role_create "self" action role_delete "self" action role_get "self" action role_list "self" action role_update "self" } resourcemanager ||--|| tenant: alias resourcemanager ||--|| group: alias subject { } subject ||--|| user: alias subject ||--|| client: alias ``` Signed-off-by: Mike Mason <[email protected]>
- Loading branch information