Skip to content
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

fix(server): use server side dry run in case if it is server side apply #546

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

pasha-codefresh
Copy link
Member

@pasha-codefresh pasha-codefresh commented Oct 31, 2023

Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f15cf61) 54.63% compared to head (eb5473a) 54.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
+ Coverage   54.63%   54.70%   +0.06%     
==========================================
  Files          41       41              
  Lines        4638     4645       +7     
==========================================
+ Hits         2534     2541       +7     
  Misses       1908     1908              
  Partials      196      196              
Files Coverage Δ
pkg/sync/sync_context.go 74.27% <100.00%> (+0.20%) ⬆️

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

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@crenshaw-dev crenshaw-dev merged commit 4a5648e into master Oct 31, 2023
5 checks passed
@crenshaw-dev crenshaw-dev deleted the fix/server-side-apply-hooks branch October 31, 2023 14:22
pasha-codefresh added a commit that referenced this pull request Oct 31, 2023
anandf added a commit to anandf/gitops-engine that referenced this pull request Jan 12, 2024
anandf added a commit to anandf/gitops-engine that referenced this pull request Jan 19, 2024
anandf added a commit to anandf/gitops-engine that referenced this pull request Jan 19, 2024
…side apply (argoproj#546)"

This reverts commit 4a5648e.

Signed-off-by: Anand Francis Joseph <[email protected]>
leoluz added a commit that referenced this pull request Jan 22, 2024
…idation even with server side apply (#564)

* Revert "feat: retry with client side dry run if server one was failed (#548)"

This reverts commit c0c2dd1.

Signed-off-by: Anand Francis Joseph <[email protected]>

* Revert "fix(server): use server side dry run in case if it is server side apply (#546)"

This reverts commit 4a5648e.

Signed-off-by: Anand Francis Joseph <[email protected]>

* Fixed the logic to disable server side apply if it is a dry run

Signed-off-by: Anand Francis Joseph <[email protected]>

* Added more values in the log message for better debugging

Signed-off-by: Anand Francis Joseph <[email protected]>

* Fixed compilation error

Signed-off-by: Anand Francis Joseph <[email protected]>

* Written an inline fn to get string value of dry-run strategy

Signed-off-by: Anand Francis Joseph <[email protected]>

* Added comment as requested with reference to the issue number

Signed-off-by: Anand Francis Joseph <[email protected]>

---------

Signed-off-by: Anand Francis Joseph <[email protected]>
Co-authored-by: Leonardo Luz Almeida <[email protected]>
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.

Synchronization triggers both PostSync and SyncFail events even on successful sync
2 participants