refactor(c4): created c4 folders, divided models and views into seperate files
This commit is contained in:
parent
a0c13075bb
commit
d8a5101efb
6 changed files with 103 additions and 98 deletions
|
@ -1,5 +1,5 @@
|
|||
model {
|
||||
workflow edfbuilder "EDFbuilder" {
|
||||
workflow edfbuilder_workflow "EDFbuilder" {
|
||||
step runEDP "Run edpbuilder script" {
|
||||
style {
|
||||
opacity 25%
|
||||
|
@ -88,7 +88,6 @@ model {
|
|||
installArgoCDStacks -> cleanup
|
||||
}
|
||||
|
||||
runEDP -> createCrossplaneNS
|
||||
createCrossplaneNS -> installCrossplaneHelm
|
||||
installCrossplaneHelm -> installCrossplaneFunctionsAndProviders
|
||||
installCrossplaneFunctionsAndProviders -> waitForCrossplaneFunctionsAndProviders
|
||||
|
@ -109,3 +108,4 @@ views {
|
|||
include edfbuilder.**
|
||||
autoLayout LeftRight 120 110
|
||||
}
|
||||
}
|
75
likec4/containers/edp-views.c4
Normal file
75
likec4/containers/edp-views.c4
Normal file
|
@ -0,0 +1,75 @@
|
|||
views {
|
||||
|
||||
view keycloak of edp.keycloak {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view forgejo of edp.forgejo {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view crossplane of edp.crossplane {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view externalSecrets of edp.externalSecrets {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view velero of edp.velero {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view minio of edp.minio {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view monitoring of edp.monitoring {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
loki.*
|
||||
}
|
||||
|
||||
view ingressNginx of edp.ingressNginx {
|
||||
include *
|
||||
}
|
||||
|
||||
view testapp of edp.testApp {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view mailhog of edp.mailhog {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view spark of edp.spark {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
|
||||
view argoCD of edp.argoCD {
|
||||
include
|
||||
*,
|
||||
edp.ingressNginx ->
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,8 +1,4 @@
|
|||
model {
|
||||
developer = actor 'Developer' {
|
||||
description 'The regular user of the platform'
|
||||
}
|
||||
|
||||
edp = system 'EDP' {
|
||||
|
||||
container ui 'Backstage' {
|
||||
|
@ -226,97 +222,6 @@ model {
|
|||
developer -> forgejo 'manages code'
|
||||
developer -> keycloak 'authenticates'
|
||||
developer -> argoCD 'manages deployments'
|
||||
developer -> edp 'outer loop development'
|
||||
}
|
||||
|
||||
views {
|
||||
|
||||
view overview {
|
||||
title 'Landscape view'
|
||||
|
||||
include *
|
||||
}
|
||||
|
||||
view edp of edp {
|
||||
title 'Context view'
|
||||
include *
|
||||
exclude ingressNginx ->
|
||||
exclude element.tag = #internal
|
||||
|
||||
style * {
|
||||
opacity 25%
|
||||
}
|
||||
}
|
||||
|
||||
view keycloak of keycloak {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view forgejo of forgejo {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view crossplane of crossplane {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view externalSecrets of externalSecrets {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view velero of velero {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view minio of minio {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view monitoring of monitoring {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->,
|
||||
loki.*
|
||||
}
|
||||
|
||||
view ingressNginx of ingressNginx {
|
||||
include *
|
||||
}
|
||||
|
||||
view testapp of testApp {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view mailhog of mailhog {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view spark of spark {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
|
||||
view argoCD of argoCD {
|
||||
include
|
||||
*,
|
||||
ingressNginx ->
|
||||
}
|
||||
}
|
||||
|
||||
|
5
likec4/context/actors.c4
Normal file
5
likec4/context/actors.c4
Normal file
|
@ -0,0 +1,5 @@
|
|||
model {
|
||||
developer = actor 'Developer' {
|
||||
description 'The regular user of the platform'
|
||||
}
|
||||
}
|
20
likec4/context/context-view.c4
Normal file
20
likec4/context/context-view.c4
Normal file
|
@ -0,0 +1,20 @@
|
|||
views {
|
||||
|
||||
view overview {
|
||||
title 'Landscape view'
|
||||
|
||||
include *
|
||||
exclude element.kind = workflow
|
||||
}
|
||||
|
||||
view edp of edp {
|
||||
title 'Context view'
|
||||
include *
|
||||
exclude ingressNginx ->
|
||||
exclude element.tag = #internal
|
||||
|
||||
style * {
|
||||
opacity 25%
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue