feat(syncwaves): add DAG for syncwaves v2 (alpha) #7437#25282
Open
SebastienFelix wants to merge 1 commit into
Open
feat(syncwaves): add DAG for syncwaves v2 (alpha) #7437#25282SebastienFelix wants to merge 1 commit into
SebastienFelix wants to merge 1 commit into
Conversation
❌ Preview Environment undeployed from BunnyshellAvailable commands (reply to this comment):
|
a6a3b03 to
811c979
Compare
811c979 to
4263744
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #25282 +/- ##
==========================================
+ Coverage 60.82% 62.29% +1.46%
==========================================
Files 351 351
Lines 60439 49346 -11093
==========================================
- Hits 36760 30738 -6022
+ Misses 20757 15670 -5087
- Partials 2922 2938 +16 ☔ View full report in Codecov by Sentry. |
chansuke
reviewed
Nov 14, 2025
4d18ec6 to
d4abd45
Compare
7b2370e to
6734b5a
Compare
Signed-off-by: SebastienFelix <sebastien.felix3@gmail.com>
6734b5a to
883f632
Compare
14 tasks
|
I really like this feature, but is there some issue preventing this PR from moving forward? |
|
Is there something to be done to help merge this sooner? This is really cool. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR resolves #7437
This PR introduces a new concept to sync-waves : sync-groups, which allows to define groups of resources that could be synced independently using a DAG representing their dependencies.
To give some insights of what I am trying to achieve with this PR, I add a new layer to sync-waves in to order to define groups of resources that could be synced independently (in parallel) using sync waves. By adding a wave-group id and wave group dependencies, it allows to define a DAG operating on the different wave groups. Here is an example of resource definition and the expected behavior :
apiVersion: v1
kind: Pod
metadata:
name: label-demo
labels:
argocd.argoproj.io/sync-wave: -1
argocd.argoproj.io/sync-wave-group: 2
argocd.argoproj.io/sync-wave-group-dependencies: 0,1
This pod belongs to wave-group 2 with sync-wave value -1. It will be synced only when no more resources from sync-groups 0 and 1 needs to be synced.
How Does It Work Together?
Syncing process orders the resources in the following precedence:
The phase
The group with respect to group dependencies
The wave they are in (lower values first)
By kind (e.g. namespaces first)
By name
Hope it clarifies.
Checklist: