Skip to content

Commit 9afbe4e

Browse files
authored
docs: improve dependent resource mermaid visuals (#3153)
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent a7056ec commit 9afbe4e

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

docs/content/en/docs/documentation/dependent-resource-and-workflows/dependent-resources.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,26 @@ each secondary resource:
1616

1717
```mermaid
1818
flowchart TD
19-
20-
compute[Compute desired secondary resource based on primary state] --> A
21-
A{Secondary resource exists?}
22-
A -- Yes --> match
23-
A -- No --> Create --> Done
24-
25-
match{Matches desired state?}
26-
match -- Yes --> Done
27-
match -- No --> Update --> Done
19+
Start([Start Reconciliation]) --> Compute
20+
Compute[Compute desired secondary<br/>resource based on<br/>primary state] --> Exists
21+
Exists{Secondary<br/>resource<br/>exists?}
22+
Exists -->|No| Create[Create Resource]
23+
Exists -->|Yes| Match
24+
Match{Matches<br/>desired<br/>state?}
25+
Match -->|Yes| Done
26+
Match -->|No| Update[Update Resource]
27+
Create --> Done([Done])
28+
Update --> Done
29+
30+
classDef startEnd fill:#e1f5e1,stroke:#4caf50,stroke-width:2px
31+
classDef compute fill:#e3f2fd,stroke:#2196f3,stroke-width:2px
32+
classDef decision fill:#fff3e0,stroke:#ff9800,stroke-width:2px
33+
classDef action fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px
34+
35+
class Start,Done startEnd
36+
class Compute compute
37+
class Exists,Match decision
38+
class Create,Update action
2839
```
2940

3041
While these steps are not difficult in and of themselves, there are some subtleties that can lead to

0 commit comments

Comments
 (0)