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

feat: Implement Server-Side Diffs #522

Merged
merged 19 commits into from
Dec 18, 2023

Conversation

leoluz
Copy link
Contributor

@leoluz leoluz commented May 19, 2023

Implement Server-Side Diffs

fix argoproj/argo-cd#11574

@sonarcloud
Copy link

sonarcloud bot commented May 19, 2023

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 3 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 97 lines in your changes are missing coverage. Please review.

Comparison is base (4a5648e) 54.70% compared to head (8742000) 54.47%.
Report is 1 commits behind head on master.

Files Patch % Lines
pkg/diff/diff.go 46.15% 47 Missing and 16 partials ⚠️
pkg/utils/kube/resource_ops.go 0.00% 20 Missing ⚠️
pkg/diff/diff_options.go 47.36% 10 Missing ⚠️
pkg/sync/sync_context.go 82.60% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #522      +/-   ##
==========================================
- Coverage   54.70%   54.47%   -0.23%     
==========================================
  Files          41       41              
  Lines        4645     4793     +148     
==========================================
+ Hits         2541     2611      +70     
- Misses       1908     1969      +61     
- Partials      196      213      +17     

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

Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
@leoluz leoluz marked this pull request as ready for review December 6, 2023 22:16
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff_options.go Outdated Show resolved Hide resolved
pkg/utils/kube/resource_ops.go Show resolved Hide resolved
pkg/utils/kube/resource_ops.go Outdated Show resolved Hide resolved
pkg/diff/diff.go Outdated Show resolved Hide resolved
pkg/diff/diff_options.go Outdated Show resolved Hide resolved
leoluz and others added 7 commits December 8, 2023 11:37
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Copy link

sonarcloud bot commented Dec 18, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

6 New issues
0 Security Hotspots
No data about Coverage
3.0% Duplication on New Code

See analysis details on SonarCloud

return result, nil
}

// ServerSideDiff will execute a k8s server-side apply in dry-run mode with the
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// ServerSideDiff will execute a k8s server-side apply in dry-run mode with the
// serverSideDiff will execute a k8s server-side apply in dry-run mode with the

@crenshaw-dev crenshaw-dev merged commit aba3819 into argoproj:master Dec 18, 2023
4 checks passed
anandf added a commit to anandf/gitops-engine that referenced this pull request Jan 13, 2024
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.

Implement Server-Side Diff in Argo CD controller
2 participants