Skip to content

docs: update architecture.md for orchestrator extraction and interface changes#175

Merged
mrhillsman merged 1 commit into
mainfrom
docs/architecture-stale-references-174
Jun 1, 2026
Merged

docs: update architecture.md for orchestrator extraction and interface changes#175
mrhillsman merged 1 commit into
mainfrom
docs/architecture-stale-references-174

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

Bring docs/architecture.md in sync with the current codebase:

Layer diagram:

  • Add orchestrator package to Layer 4, move audit to Layer 1
  • Reroute dependency arrows: CMD > ORCH > {REGISTRY, VM, RES, WAIT}
  • Update CMD label from "orchestration" to "dependency wiring"

CLI Orchestration Flow:

  • Restructure flowchart to show RunOrchestrator.Run() boundary
  • Replace flat step sequence with subgraph matching actual method calls (planVMs, createResources, createSecrets, createVMs, waitForReadiness)

Class diagram:

  • Roles() []string to RoleDistribution() []RoleSpec on MultiVMWorkload, NetworkWorkload, and TPSWorkload
  • DataVolumeTemplates() now returns ([], error) on Workload and BaseWorkload

Concurrency table:

  • Add internal/orchestrator row (owns errgroup lifecycle)
  • Update cmd/virtwork to "delegates to RunOrchestrator"

Key Design Decisions:

  • namespaceDataVolumes (cmd/virtwork/main.go) → NamespaceDataVolumes (internal/orchestrator/types.go)

Project Structure:

  • Add internal/orchestrator/ directory with three files
  • Add audit/migrate.go
  • Fix Dockerfile comment: Debian to Alpine
  • Fix main.go comment: orchestration to dependency wiring

Resolves #174

…e changes

Bring docs/architecture.md in sync with the current codebase:

Layer diagram:
- Add orchestrator package to Layer 4, move audit to Layer 1
- Reroute dependency arrows: CMD → ORCH → {REGISTRY, VM, RES, WAIT}
- Update CMD label from "orchestration" to "dependency wiring"

CLI Orchestration Flow:
- Restructure flowchart to show RunOrchestrator.Run() boundary
- Replace flat step sequence with subgraph matching actual method calls
  (planVMs, createResources, createSecrets, createVMs, waitForReadiness)

Class diagram:
- Roles() []string → RoleDistribution() []RoleSpec on MultiVMWorkload,
  NetworkWorkload, and TPSWorkload
- DataVolumeTemplates() now returns ([], error) on Workload and BaseWorkload

Concurrency table:
- Add internal/orchestrator row (owns errgroup lifecycle)
- Update cmd/virtwork to "delegates to RunOrchestrator"

Key Design Decisions:
- namespaceDataVolumes (cmd/virtwork/main.go) →
  NamespaceDataVolumes (internal/orchestrator/types.go)

Project Structure:
- Add internal/orchestrator/ directory with three files
- Add audit/migrate.go
- Fix Dockerfile comment: Debian → Alpine
- Fix main.go comment: orchestration → dependency wiring

Resolves #174

Signed-off-by: Melvin Hillsman <mhillsma@redhat.com>
@exe-prow-github-app exe-prow-github-app Bot requested a review from OchiengEd June 1, 2026 17:23
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2026
@mrhillsman mrhillsman removed the request for review from OchiengEd June 1, 2026 17:23
@mrhillsman mrhillsman merged commit 6b6260c into main Jun 1, 2026
3 of 4 checks passed
@mrhillsman mrhillsman deleted the docs/architecture-stale-references-174 branch June 1, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs]: architecture.md missing orchestrator package and has stale interface/build references

1 participant