refactor(c4): move deployment to the same level as model, split deployments-views to views

This commit is contained in:
Stephan Lo 2025-05-06 12:14:10 +02:00
parent 16701c9957
commit 79c9dfbcc3
8 changed files with 24 additions and 18 deletions

View file

@ -22,3 +22,8 @@ npm install likec4
// render
node@e20899c8046f:/app/content/en/docs/project/onboarding$ ./node_modules/.bin/likec4 export png -o ./images .
## trouble shooting
when refactoring you might need to restart the languange server, just that it updates its internal model representation
In VSCode it is: `ctrl+Shift+P' + 'LikeC4: restart languange server`

View file

@ -83,19 +83,3 @@ deployment {
}
}
views {
deployment view index {
title 'Local Deployment'
include
*,
local.**,
monitoring.*,
openbao.*,
externalSecrets.*,
crossplane.*,
spark.*,
argocd.*
}
}

View file

@ -1,9 +1,10 @@
model {
edf = system 'EDF' {
description 'EDP Foundry, the EDP builder'
description 'EDP Foundry is a platform for building and deploying EDPs tenantwise.'
technology 'Kubernetes'
icon tech:kubernetes
-> edp 'builds many'
platformdeveloper -> edf "develops EDP and EDF"
}
}

View file

@ -0,0 +1,16 @@
views {
deployment view index {
title 'Local Deployment'
include
*,
local.**,
local.monitoring.*,
local.openbao.*,
local.externalSecrets.*,
local.crossplane.*,
local.spark.*,
local.argocd.*
}
}