refactor(c4): move deployment to the same level as model, split deployments-views to views
This commit is contained in:
parent
16701c9957
commit
79c9dfbcc3
8 changed files with 24 additions and 18 deletions
|
@ -22,3 +22,8 @@ npm install likec4
|
||||||
|
|
||||||
// render
|
// render
|
||||||
node@e20899c8046f:/app/content/en/docs/project/onboarding$ ./node_modules/.bin/likec4 export png -o ./images .
|
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`
|
|
@ -83,19 +83,3 @@ deployment {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
views {
|
|
||||||
deployment view index {
|
|
||||||
title 'Local Deployment'
|
|
||||||
|
|
||||||
include
|
|
||||||
*,
|
|
||||||
local.**,
|
|
||||||
monitoring.*,
|
|
||||||
openbao.*,
|
|
||||||
externalSecrets.*,
|
|
||||||
crossplane.*,
|
|
||||||
spark.*,
|
|
||||||
argocd.*
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
model {
|
model {
|
||||||
edf = system 'EDF' {
|
edf = system 'EDF' {
|
||||||
description 'EDP Foundry, the EDP builder'
|
description 'EDP Foundry is a platform for building and deploying EDPs tenantwise.'
|
||||||
technology 'Kubernetes'
|
technology 'Kubernetes'
|
||||||
icon tech:kubernetes
|
icon tech:kubernetes
|
||||||
-> edp 'builds many'
|
-> edp 'builds many'
|
||||||
platformdeveloper -> edf "develops EDP and EDF"
|
platformdeveloper -> edf "develops EDP and EDF"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
16
likec4/views/deployment/deployment.c4
Normal file
16
likec4/views/deployment/deployment.c4
Normal 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.*
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue