reconcileContainers processes each service in dependency order, comparing the desired scale and configuration with observed containers.
()
| 366 | // reconcileContainers processes each service in dependency order, comparing |
| 367 | // the desired scale and configuration with observed containers. |
| 368 | func (r *reconciler) reconcileContainers() error { |
| 369 | // Build dependency graph and process in order |
| 370 | graph, err := NewGraph(r.project, ServiceStopped) |
| 371 | if err != nil { |
| 372 | return err |
| 373 | } |
| 374 | |
| 375 | // Visit in dependency order (leaves first = services with no deps) |
| 376 | return r.visitInDependencyOrder(graph) |
| 377 | } |
| 378 | |
| 379 | // visitInDependencyOrder processes services from leaves to roots so that |
| 380 | // dependencies are reconciled before the services that depend on them. |
no test coverage detected