File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,22 +21,40 @@ matters.
2121
2222---
2323
24- ## Mental Model
24+ ## Architecture
2525
2626An operator built with this framework has two layers between the controller and raw Kubernetes objects:
2727
28- ```
29- Controller
30- └─ Component
31- └─ Resource Primitive
32- └─ Kubernetes Object
28+ ``` mermaid
29+ graph TB
30+ subgraph controller [" "]
31+ R["⚪ Your Reconciler"]
32+ end
33+
34+ subgraph components [" "]
35+ C1["🔵 Web Interface component"]
36+ C2["🔵 Monitoring component"]
37+ end
38+
39+ subgraph primitives [" "]
40+ P1["🟢 ConfigMap"]
41+ P2["🟢 Deployment"]
42+ P3["🟢 Service"]
43+ P4["🟢 ServiceAccount"]
44+ P5["🟢 DaemonSet"]
45+ end
46+
47+ subgraph cluster [" "]
48+ K["⚪ Kubernetes API"]
49+ end
50+
51+ R --> C1 & C2
52+ C1 --> P1 & P2 & P3
53+ C2 --> P4 & P5
54+ P1 & P2 & P3 & P4 & P5 --> K
3355```
3456
35- | Layer | Responsibility |
36- | ---------------------- | --------------------------------------------------------------------------------------- |
37- | ** Controller** | Determines which components should exist; orchestrates reconciliation at a high level |
38- | ** Component** | Represents one logical feature; reconciles its resources and reports a single condition |
39- | ** Resource Primitive** | Encapsulates desired state and lifecycle behavior for a single Kubernetes object |
57+ > ⚪ What you already have &emsp ; 🔵 OCF component layer &emsp ; 🟢 OCF primitive layer
4058
4159## Features
4260
You can’t perform that action at this time.
0 commit comments