Skip to content

Commit

Permalink
add sequence diagram to workload-orchestration
Browse files Browse the repository at this point in the history
Modified 'workload-orchestration-edge-onboarding.md' to include a diagram example

Signed-off-by: Andreas Ziller <[email protected]>
Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
  • Loading branch information
g0zilla authored and Silvanoc committed Feb 10, 2025
1 parent cd980a5 commit 38cdb36
Showing 1 changed file with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,56 @@ In order for the workload orchestration solution to manage the edge device's wor
1. The device's management client receives the URL for the Git repository containing its desired state and an associated access token for authentication
1. The [device capabilities](./device-capability-reporting.md) information is sent from the device to the workload orchestration web service using the [Device API](../../margo-api-reference/workload-api/device-api/device-capabilities.md)

![Margo Management Interface Operational Flow Diagram (svg)](../../figures/margo-interface-generic.drawio.svg)
``` mermaid
sequenceDiagram
%%{init: {'sequence': {'mirrorActors': false}}}%%
autonumber
participant device as Device
actor user as End User
participant rendezvous as Rendezvous Server
participant wos as WOS
participant git as WOS: Device Git Repo
note over device, git: Workload orchestration onboarding
user -->> device: Get device id and cert
activate device
device -->> user: return
deactivate device
user -->> wos: Provides device id and cert to pre-register device in end user's tenant πŸ”
%%note over device, rendezvous: FIDO
user -->> rendezvous: Provides WOS URL
device -->>+ rendezvous: Looks up WOS URL
rendezvous -->>- device: return
device -->>+ wos: Request WOS' public signing cert πŸ”“
wos -->- device: return
device -->>+ wos: Send onboard request, device id and certificate πŸ”“
wos -->> wos: Vaidates device id and cert with onboarding registry
wos -->- device: returns URL to check onboarding status
loop until onboarding status is active
device -->>+ wos: Checks onboarding status providing device id and certificate πŸ”“
wos -->> wos: Validates device id and cert with onboarding registry
wos -->- device: returns in progress
end
device -->>+ wos: Checks onboarding status providing device id and certificate πŸ”“
wos -->> wos: Validates device id and cert with onboarding registry
wos -->- device: returns git repo URL and GitOps token, encrypted client id, encrypted client secret
device -->> wos: Uploads device capabilities
note over device, git: Workload deployment
loop Until end of time
device -->>+ git: Checks for updates to desired state πŸ”
git -->>- device: return
opt
device -->> wos: Requests new GitOps token πŸ”
wos -->> device: return
end
device -->> device: Applies new desired state
device -->> wos: Sends state πŸ”
device -->> wos: Sends state πŸ”
device -->> wos: Sends final state πŸ”
end
```
> Action: FIDO Device onboarding has not been finalized as the standard onboarding solution. Further discussion/investigations are needed.
### Configuring the Workload Orchestration Web Service URL
Expand Down

0 comments on commit 38cdb36

Please sign in to comment.