-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Charm Architecture DSL --------- Co-authored-by: Konstantinos Tsakalozos <[email protected]>
- Loading branch information
1 parent
769f881
commit 1a27952
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
workspace { | ||
|
||
model { | ||
user = person "Administrator" | ||
|
||
|
||
jujuSystem = softwareSystem "Juju" { | ||
|
||
k8sCharm = container "K8s" "K8s Charm" { | ||
technology "Charmed Operator" | ||
|
||
} | ||
|
||
|
||
charmWorker = container "K8s Worker" "K8s Worker Charm" { | ||
technology "Charmed Operator" | ||
} | ||
|
||
k8sWorkerRelationData = container "K8s Worker Relation Data" { | ||
technology "Juju Relation Databag" | ||
k8sCharm -> this "Share Cluster Data" | ||
charmWorker -> this "Reads from and writes to" | ||
this -> charmWorker "Retrieves Peer Data" | ||
} | ||
|
||
|
||
jujuController = container "Juju Controller" { | ||
technology "Snap Package" | ||
this -> k8sCharm "Manages" | ||
this -> charmWorker "Manages" | ||
} | ||
|
||
jujuCLI = container "Juju Client" { | ||
technology "Snap Package" | ||
user -> this "Uses" | ||
this -> jujuController "Manages" | ||
} | ||
|
||
k8sRelationData = container "K8s Relation Data" { | ||
k8sCharm -> this "Reads from and writes to" | ||
this -> k8sCharm "Retrieves Peer Data" | ||
} | ||
|
||
externalCharms = container "Compatible Charms" "Other Compatible Canonical Charms" { | ||
k8sCharm -> this "Integrates with" | ||
charmWorker -> this "Integrates with | ||
k8sRelationData -> this "Reads from and writes to" | ||
k8sWorkerRelationData -> this "Reads from and writes to" | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
} | ||
|
||
views { | ||
|
||
container jujuSystem { | ||
include * | ||
autolayout tb | ||
} | ||
|
||
theme default | ||
} | ||
|
||
} |