-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Prune resources in reverse of sync wave order #538
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #538 +/- ##
==========================================
+ Coverage 54.47% 54.76% +0.29%
==========================================
Files 41 41
Lines 4793 4824 +31
==========================================
+ Hits 2611 2642 +31
Misses 1969 1969
Partials 213 213 ☔ View full report in Codecov by Sentry. |
e81753e
to
3540566
Compare
What happens when:
Can you run this experiment? If your code is correct, only pod-3 should have been deleted. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Thanks @drpaneas . Your test scenario helped find a bug in my implementation. I updated the logic to use waveOverride var instead of directly patching live obj. It is now working as expected. syncwave-prune-order-test.mov |
Hehe, great ;) /lgtm |
/lgtm |
how is this feature progressing? do we have any plan on which version would be included? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@crenshaw-dev - Could you please take a look at this PR when you have some time? Thank you. |
Any timeline to merge this PR? |
I have discussed the changes with maintainers on one of the call. Currently working on an e2e test to test the integration with Argo CD. Should be good to merge in next few weeks 🤞. |
Signed-off-by: Siddhesh Ghadi <[email protected]>
Directly patching live objs results into incorrect wave ordering as the new wave value from live obj is used to perform reordering during next sync Signed-off-by: Siddhesh Ghadi <[email protected]>
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Hi @crenshaw-dev, as discussed previously, I have added docs & a e2e test to test the integration with Argo CD in argoproj/argo-cd#16748. The CI is passing. Is there anything else required to get this in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks @ishitasequeira. Anything else required for merge? |
I have updated the argoproj/argo-cd#16748 PR to bring this change in ArgoCD. Please take a look. Thanks. |
* Prune resources in reverse of sync wave order Signed-off-by: Siddhesh Ghadi <[email protected]> * Use waveOverride var instead of directly patching live obj Directly patching live objs results into incorrect wave ordering as the new wave value from live obj is used to perform reordering during next sync Signed-off-by: Siddhesh Ghadi <[email protected]> --------- Signed-off-by: Siddhesh Ghadi <[email protected]> Signed-off-by: Justin Marquis <[email protected]>
* Prune resources in reverse of sync wave order * Use waveOverride var instead of directly patching live obj Directly patching live objs results into incorrect wave ordering as the new wave value from live obj is used to perform reordering during next sync --------- Signed-off-by: Siddhesh Ghadi <[email protected]> Signed-off-by: Justin Marquis <[email protected]> Co-authored-by: Siddhesh Ghadi <[email protected]>
This PR implements argoproj/argo-cd#15074 enhancement to prune resources in reverse order of sync waves.
Changes:
Related: argoproj/argo-cd#12376