Skip to content

Commit

Permalink
Add Charm Architecture DSL (#326)
Browse files Browse the repository at this point in the history
* Add Charm Architecture DSL

---------

Co-authored-by: Konstantinos Tsakalozos <[email protected]>
  • Loading branch information
mateoflorido and ktsakalozos authored Apr 10, 2024
1 parent 769f881 commit 1a27952
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions docs/src/assets/charm-arch.dsl
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
}

}

0 comments on commit 1a27952

Please sign in to comment.