Conversation
ruinan-liu
left a comment
There was a problem hiding this comment.
Reply to comments
ruinan-liu
left a comment
There was a problem hiding this comment.
Replied to comments
ruinan-liu
left a comment
There was a problem hiding this comment.
Respond to comment
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
|
| logger.Info("reconciling reverse - checking for compositions to delete", "variationCount", len(symph.Spec.Variations), "existingCompositionCount", len(comps.Items), "symphonyDeleting", symph.DeletionTimestamp != nil) | ||
| // Delete compositions when their synth has been removed from the symphony | ||
| existingBySynthName := map[string][]*apiv1.Composition{} | ||
| for _, comp := range comps.Items { |
There was a problem hiding this comment.
Should sort the comps.Items with dependency graph before traversing. So we can complete the creation/deletion in O(n). During the sorting, we can detect the circular dependency as well.
| } | ||
|
|
||
| // Sync forward (create/update) | ||
| for _, variation := range symph.Spec.Variations { |
There was a problem hiding this comment.
The same comment. Should sort the comps.Items with dependency graph before traversing. So we can complete the creation/deletion in O(n). During the sorting, we can detect the circular dependency as well.
The pr is too big for an effective review. Please split into multiple prs with each targeting one specific controller.
|
|
||
| var inFlight int | ||
| var op *op | ||
| for _, comp := range comps.Items { |
There was a problem hiding this comment.
Sort it with dependency graph before traversing.
Part1 of breaking down of the larger PR: #581 Adding API changes in `Composition` and `Symphony` Specs.
Pull request was closed
uses
dependsOnto add inter composition ordering