diff --git a/docs/content/en/docs/documentation/dependent-resource-and-workflows/dependent-resources.md b/docs/content/en/docs/documentation/dependent-resource-and-workflows/dependent-resources.md index 1981729dc0..f731f8939d 100644 --- a/docs/content/en/docs/documentation/dependent-resource-and-workflows/dependent-resources.md +++ b/docs/content/en/docs/documentation/dependent-resource-and-workflows/dependent-resources.md @@ -16,15 +16,26 @@ each secondary resource: ```mermaid flowchart TD - -compute[Compute desired secondary resource based on primary state] --> A -A{Secondary resource exists?} -A -- Yes --> match -A -- No --> Create --> Done - -match{Matches desired state?} -match -- Yes --> Done -match -- No --> Update --> Done + Start([Start Reconciliation]) --> Compute + Compute[Compute desired secondary
resource based on
primary state] --> Exists + Exists{Secondary
resource
exists?} + Exists -->|No| Create[Create Resource] + Exists -->|Yes| Match + Match{Matches
desired
state?} + Match -->|Yes| Done + Match -->|No| Update[Update Resource] + Create --> Done([Done]) + Update --> Done + + classDef startEnd fill:#e1f5e1,stroke:#4caf50,stroke-width:2px + classDef compute fill:#e3f2fd,stroke:#2196f3,stroke-width:2px + classDef decision fill:#fff3e0,stroke:#ff9800,stroke-width:2px + classDef action fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px + + class Start,Done startEnd + class Compute compute + class Exists,Match decision + class Create,Update action ``` While these steps are not difficult in and of themselves, there are some subtleties that can lead to