Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admiral sequence diagram #259

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,49 @@ Refer to [Contributing doc](./CONTRIBUTING.md)
## Release Cadence

Details can be found [here](./docs/Processes.md)

## Admiral sequence diagram
```mermaid
sequenceDiagram
autonumber 1
Service/VirtualService Handler->>+Rollout/Deployment Handler: Add/Update/Delete events
loop
autonumber 1
GTP Handler->>GTP Handler: Add/Update/Delete events
end
autonumber 1
GTP Handler ->> ServiceEntry Handler: Add/Update
loop
autonumber 1
Rollout/Deployment Handler->>Rollout/Deployment Handler: Add/Delete events of rollout/deployment
end
autonumber 1
Rollout/Deployment Handler->>ServiceEntry Handler: Add/Update
autonumber 2
ServiceEntry Handler->>RemoteControllers: Fetch All Cluster Controllers
rect rgb(255, 255, 220)
loop
ServiceEntry Handler->>K8sAPI 1..N: For each cluster, get corresponding service object
K8sAPI 1..N-->>ServiceEntry Handler: Continue if service does not exist for deployment/rollout
K8sAPI 1..N-->>ServiceEntry Handler: Build list of source services
end
end
rect rgb(255, 255, 220)
loop
ServiceEntry Handler->>K8sAPI 1..N: Derive SE from each service in the list
ServiceEntry Handler->>GTP Cache: Derive DR from GTP
rect rgb(204, 255, 204)
loop
ServiceEntry Handler->>K8sAPI 1..N: Add/Update SE/DR in source clusters
end
end
end
end

ServiceEntry Handler->>DependencyCache: Fetch dependent clusters
rect rgb(204, 255, 204)
loop
ServiceEntry Handler->>K8sAPI 1..N: Add/Update SE/DR in dependent clusters
end
end
```