Renaming module for better import resolution under pyright
Ansible Linting / ansible-lint (push) Failing after 6s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 20s

This commit is contained in:
shockrah committed 2026-04-20 23:07:39 -07:00
1 parent 87b0c9c571
commit 1610a3a55f
4 files changed
+1 -1

No files matched your search

View File
Whitespace-only changes.
+31
View File
@@ -0,0 +1,31 @@
'''
This module is here to provide a consistent way of generating diagrams of the
current infrastrcuture
'''
from diagrams import Cluster
from diagrams import Diagram
from diagrams.k8s.compute import Pod
from diagrams.k8s.network import Service
from diagrams.k8s.network import Ingress
from diagrams.generic.compute import Rack
from diagrams.generic.blank import Blank
from personal import Gitea
from personal import StaticSite
if __name__ == '__main__':
with Diagram('Public Infrastructure', show=False):
with Cluster('Randy Random Host'):
nginx = Rack('Nginx LB')
git = Gitea('Gitea') >> nginx
tmp = StaticSite('Temper Blog') >> nginx
dev = StaticSite('Dev Blog') >> nginx
_ = nginx >> Blank()
with Cluster('Namespace - playground'):
ingress = Ingress('Nginx Controller')
s = Pod('Sanity') >> Service('sanity.shockrah.xyz') >> ingress
u = Pod('Uptime') >> Service('uptime.shockrah.xyz') >> ingress
p = Pod('Wiki') >> Service('wiki.shockrah.xyz') >> ingress
_ = ingress >> Blank()
+8
View File
@@ -0,0 +1,8 @@
from diagrams.custom import Custom
def Gitea(name: str) -> Custom:
return Custom(name, './images/gitea.png')
def StaticSite(name: str) -> Custom:
return Custom(name, './images/website.png')