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
@@ -23,19 +24,19 @@ the `Deployment` controller.
23
24
Controllers that deal with secondary resources typically need to perform the following steps, for
24
25
each secondary resource:
25
26
26
- ``` mermaid
27
+ < div class = " mermaid " markdown = " 0 " >
27
28
flowchart TD
28
29
29
- compute[Compute desired secondary resource based on primary state] --> A
30
30
A{Secondary resource exists?}
31
31
A -- Yes --> match
32
- A -- No --> Create --> Done
32
+ A -- No --> compute
33
33
34
+ compute[ Compute desired state based on primary state] --> Create --> Done
34
35
match{Matches desired state as defined by primary?}
35
36
match -- Yes --> Done
36
- match -- No --> Update --> Done
37
+ match -- No --> Update
37
38
38
- ```
39
+ </ div >
39
40
40
41
While these steps are not difficult in and of themselves, there are some subtleties that can lead to
41
42
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