Skip to content

Commit f8255ce

Browse files
doc: diagram title removed
1 parent 8a80544 commit f8255ce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
2.68 KB
Loading

use-cases/resources/diagram-org-k8s-threat-compliance-roles.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# diagrams as code vía https://diagrams.mingrammer.com
22
from diagrams import Diagram, Cluster
33
from diagrams.gcp.security import Iam
4+
from diagrams.custom import Custom
45

56
diagram_attr = {
67
"pad": "0.25",
@@ -12,11 +13,11 @@
1213
color_non_important = "gray"
1314
color_sysdig = "lightblue"
1415

15-
with Diagram("Roles", graph_attr=diagram_attr, filename="diagram-org-k8s-threat-compliance-roles", show=True, direction="TB"):
16+
with Diagram("Role", graph_attr=diagram_attr, filename="diagram-org-k8s-threat-compliance-roles", show=True, direction="TB"):
1617

17-
with Cluster("Role", graph_attr={"bgcolor": "lightblue"}):
18+
with Cluster("", graph_attr={"bgcolor": "lightblue"}):
1819
serviceAccount = Iam("Service Account")
19-
sysdigCloudBenchmarkRole = Iam("Sysdig Cloud \n Benchmark Role")
20+
sysdigCloudBenchmarkRole = Iam("Sysdig Cloud \n Benchmark Role \n [storage.buckets.getIamPolicy, \n bigquery.tables.list]")
2021
roleViewer = Iam("roles/viewer")
2122

2223
serviceAccount << sysdigCloudBenchmarkRole

0 commit comments

Comments
 (0)