File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ title: Dependent Resources Feature
3
3
description : Dependent Resources Feature
4
4
layout : docs
5
5
permalink : /docs/dependent-resources
6
+ use_mermaid : true
6
7
---
7
8
8
9
# Dependent Resources
@@ -22,19 +23,19 @@ the `Deployment` controller.
22
23
Controllers that deal with secondary resources typically need to perform the following steps, for
23
24
each secondary resource:
24
25
25
- ``` mermaid
26
+ < div class = " mermaid " markdown = " 0 " >
26
27
flowchart TD
27
28
28
- compute[Compute desired secondary resource based on primary state] --> A
29
29
A{Secondary resource exists?}
30
30
A -- Yes --> match
31
- A -- No --> Create --> Done
31
+ A -- No --> compute
32
32
33
+ compute[ Compute desired state based on primary state] --> Create --> Done
33
34
match{Matches desired state as defined by primary?}
34
35
match -- Yes --> Done
35
- match -- No --> Update --> Done
36
+ match -- No --> Update
36
37
37
- ```
38
+ </ div >
38
39
39
40
While these steps are not difficult in and of themselves, there are some subtleties that can lead to
40
41
bugs or sub-optimal code if not done right. As this process is pretty much similar for each
You can’t perform that action at this time.
0 commit comments