gitops-engine
gitops-engine copied to clipboard
fix: Fix argument order in resource filter
The signature for the resourcesFilter function in the sync context is
resourcesFilter func(key kube.ResourceKey, target *unstructured.Unstructured, live *unstructured.Unstructured) bool
but it's called with live and target exchanged.
This is a prerequisite for fixing https://github.com/argoproj/argo-cd/issues/8683
Signed-off-by: jannfis [email protected]
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
1.4% Duplication
Codecov Report
Merging #436 (f86f321) into master (6cde798) will not change coverage. The diff coverage is
100.00%.
@@ Coverage Diff @@
## master #436 +/- ##
=======================================
Coverage 53.96% 53.96%
=======================================
Files 41 41
Lines 3189 3189
=======================================
Hits 1721 1721
Misses 1286 1286
Partials 182 182
| Impacted Files | Coverage Δ | |
|---|---|---|
| pkg/sync/sync_context.go | 70.86% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.