Skip to content

feat: add Prune as application level sync option #734

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MrFreezeex
Copy link

@MrFreezeex MrFreezeex commented Jun 12, 2025

@MrFreezeex MrFreezeex force-pushed the require-pruning-confirmation-syncoption branch from d9429e6 to e88193f Compare June 12, 2025 14:54
@MrFreezeex MrFreezeex changed the title Require pruning confirmation syncoption feat: add Prune and Delete as application level sync option Jun 12, 2025
@MrFreezeex MrFreezeex marked this pull request as ready for review June 12, 2025 15:06
@MrFreezeex MrFreezeex requested a review from a team as a code owner June 12, 2025 15:06
@MrFreezeex MrFreezeex changed the title feat: add Prune and Delete as application level sync option feat: add Prune as application level sync option Jun 13, 2025
@MrFreezeex MrFreezeex force-pushed the require-pruning-confirmation-syncoption branch from e88193f to 13f9343 Compare June 16, 2025 10:51
Copy link

codecov bot commented Jun 16, 2025

Codecov Report

Attention: Patch coverage is 20.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 47.54%. Comparing base (8849c3f) to head (a1d18d9).
Report is 52 commits behind head on master.

Files with missing lines Patch % Lines
pkg/sync/sync_context.go 20.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #734      +/-   ##
==========================================
- Coverage   54.26%   47.54%   -6.73%     
==========================================
  Files          64       64              
  Lines        6164     6575     +411     
==========================================
- Hits         3345     3126     -219     
- Misses       2549     3193     +644     
+ Partials      270      256      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MrFreezeex
Copy link
Author

(note that I only changed the second commit title that was point at the wrong sync option before :x)

@MrFreezeex MrFreezeex force-pushed the require-pruning-confirmation-syncoption branch 2 times, most recently from 03789b8 to 7f8ccfc Compare June 17, 2025 13:02
Copy link
Member

@agaudreault agaudreault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM. Missing unit test and waiting for answers in the linked argo CD PR

@MrFreezeex MrFreezeex force-pushed the require-pruning-confirmation-syncoption branch 3 times, most recently from b8b3241 to a37aef2 Compare June 18, 2025 09:34
Add WithRequiresPruneConfirmation so that we can pass this as an
Application sync option in ArgoCD

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@ledger.fr>
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@ledger.fr>
@MrFreezeex MrFreezeex force-pushed the require-pruning-confirmation-syncoption branch from a37aef2 to a1d18d9 Compare June 18, 2025 09:36
Copy link

@MrFreezeex
Copy link
Author

code LGTM. Missing unit test and waiting for answers in the linked argo CD PR

Thanks @agaudreault! I added some unit test for Prune=false and Prune=confirm, the latter didn't had any so far so I added some for Prune=confirm on a resource directly too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants