Skip to content

Commit 01346ae

Browse files
committed
fix: mermaid integration
1 parent 80529f3 commit 01346ae

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
@@ -23,19 +24,19 @@ the `Deployment` controller.
2324
Controllers that deal with secondary resources typically need to perform the following steps, for
2425
each secondary resource:
2526

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

29-
compute[Compute desired secondary resource based on primary state] --> A
3030
A{Secondary resource exists?}
3131
A -- Yes --> match
32-
A -- No --> Create --> Done
32+
A -- No --> compute
3333

34+
compute[Compute desired state based on primary state] --> Create --> Done
3435
match{Matches desired state as defined by primary?}
3536
match -- Yes --> Done
36-
match -- No --> Update --> Done
37+
match -- No --> Update
3738

38-
```
39+
</div>
3940

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

0 commit comments

Comments
 (0)