Skip to content

Commit a3284f7

Browse files
csvirimetacosm
authored andcommitted
fix: mermaid integration
1 parent 95b8a78 commit a3284f7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/documentation/dependent-resources.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Dependent Resources Feature
33
description: Dependent Resources Feature
44
layout: docs
55
permalink: /docs/dependent-resources
6+
use_mermaid: true
67
---
78

89
# Dependent Resources
@@ -22,19 +23,19 @@ the `Deployment` controller.
2223
Controllers that deal with secondary resources typically need to perform the following steps, for
2324
each secondary resource:
2425

25-
```mermaid
26+
<div class="mermaid" markdown="0">
2627
flowchart TD
2728

28-
compute[Compute desired secondary resource based on primary state] --> A
2929
A{Secondary resource exists?}
3030
A -- Yes --> match
31-
A -- No --> Create --> Done
31+
A -- No --> compute
3232

33+
compute[Compute desired state based on primary state] --> Create --> Done
3334
match{Matches desired state as defined by primary?}
3435
match -- Yes --> Done
35-
match -- No --> Update --> Done
36+
match -- No --> Update
3637

37-
```
38+
</div>
3839

3940
While these steps are not difficult in and of themselves, there are some subtleties that can lead to
4041
bugs or sub-optimal code if not done right. As this process is pretty much similar for each

0 commit comments

Comments
 (0)