Skip to content

add mermaid diagram#109

Merged
sourcehawk merged 1 commit intomainfrom
docs/mermaid-diagram
Apr 8, 2026
Merged

add mermaid diagram#109
sourcehawk merged 1 commit intomainfrom
docs/mermaid-diagram

Conversation

@sourcehawk
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 8, 2026 02:10
@sourcehawk sourcehawk force-pushed the docs/mermaid-diagram branch from f318f58 to 8209ae1 Compare April 8, 2026 02:11
@sourcehawk sourcehawk merged commit 6d232d3 into main Apr 8, 2026
@sourcehawk sourcehawk deleted the docs/mermaid-diagram branch April 8, 2026 02:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the project README to present the framework’s architecture using a Mermaid diagram, aiming to make the controller → component → primitive relationship easier to visualize for new readers.

Changes:

  • Renames the “Mental Model” section to “Architecture”.
  • Replaces the ASCII architecture sketch with a Mermaid diagram showing reconciler, components, primitives, and the Kubernetes API.
  • Adds a short legend for the diagram’s color/icon meanings.

Comment on lines +24 to 27
## Architecture

An operator built with this framework has two layers between the controller and raw Kubernetes objects:

Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Mermaid diagram replaces the previous layer/responsibility table; as a result, the README no longer explains what each layer (controller/component/primitive) is responsible for. Consider restoring the responsibility table (or equivalent prose) under the diagram so readers can understand the semantics, not just the structure.

Copilot uses AI. Check for mistakes.
Comment on lines 26 to +54
An operator built with this framework has two layers between the controller and raw Kubernetes objects:

```
Controller
└─ Component
└─ Resource Primitive
└─ Kubernetes Object
```mermaid
graph TB
subgraph controller [" "]
R["⚪ Your Reconciler"]
end

subgraph components [" "]
C1["🔵 Web Interface component"]
C2["🔵 Monitoring component"]
end

subgraph primitives [" "]
P1["🟢 ConfigMap"]
P2["🟢 Deployment"]
P3["🟢 Service"]
P4["🟢 ServiceAccount"]
P5["🟢 DaemonSet"]
end

subgraph cluster [" "]
K["⚪ Kubernetes API"]
end

R --> C1 & C2
C1 --> P1 & P2 & P3
C2 --> P4 & P5
P1 & P2 & P3 & P4 & P5 --> K
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text says there are "two layers between the controller and raw Kubernetes objects", but the diagram terminates at "Kubernetes API" and shows primitives as the objects (ConfigMap/Deployment/etc). Please align the wording and the diagram target (e.g., end at Kubernetes objects, or change the sentence to refer to the API/server) to avoid confusing readers about what the primitive layer wraps.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants