-
Notifications
You must be signed in to change notification settings - Fork 0
add mermaid diagram #109
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 mermaid diagram #109
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,22 +21,40 @@ matters. | |
|
|
||
| --- | ||
|
|
||
| ## Mental Model | ||
| ## Architecture | ||
|
|
||
| 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 | ||
|
Comment on lines
26
to
+54
|
||
| ``` | ||
|
|
||
| | Layer | Responsibility | | ||
| | ---------------------- | --------------------------------------------------------------------------------------- | | ||
| | **Controller** | Determines which components should exist; orchestrates reconciliation at a high level | | ||
| | **Component** | Represents one logical feature; reconciles its resources and reports a single condition | | ||
| | **Resource Primitive** | Encapsulates desired state and lifecycle behavior for a single Kubernetes object | | ||
| > ⚪ What you already have   🔵 OCF component layer   🟢 OCF primitive layer | ||
|
|
||
| ## Features | ||
|
|
||
|
|
||
There was a problem hiding this comment.
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.