Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Conversation

@sivchari
Copy link
Member

@sivchari sivchari commented May 5, 2025

Upgrade Kubernetes dependency to 1.33, then delete all replace directives since it's no necessary. If we use lower kubernetes dependency in other repo and depends on gitops-engine, Go prefers dependency of gitops-engine. On the other hand, if we use higher it, Go prefers dependency of other repo. In addition, the number of dependencies from gitops-engine to Kubernetes is a few, so it's easy to maintain rather than to deal with replace directive.
If necessary, I'd like to maintain about it in the future too.

@sivchari sivchari requested a review from a team as a code owner May 5, 2025 13:39
@sivchari
Copy link
Member Author

sivchari commented May 9, 2025

We should start from migration of golangci-lint

@crenshaw-dev
Copy link
Member

On it: #719

Signed-off-by: sivchari <shibuuuu5@gmail.com>
@sivchari
Copy link
Member Author

Thx! rebsaed.

…t is not necessary anymore

Signed-off-by: sivchari <shibuuuu5@gmail.com>
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented May 15, 2025

Codecov Report

Attention: Patch coverage is 13.33333% with 26 lines in your changes missing coverage. Please review.

Project coverage is 47.57%. Comparing base (8849c3f) to head (f06277c).
Report is 50 commits behind head on master.

Files with missing lines Patch % Lines
pkg/diff/endpoint.go 5.26% 18 Missing ⚠️
pkg/diff/diff.go 20.00% 6 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #717      +/-   ##
==========================================
- Coverage   54.26%   47.57%   -6.70%     
==========================================
  Files          64       63       -1     
  Lines        6164     6443     +279     
==========================================
- Hits         3345     3065     -280     
- Misses       2549     3125     +576     
+ Partials      270      253      -17     

☔ 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.

return
}
var ep corev1.Endpoints
var ep discoveryv1.EndpointSlice
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this change... the code seems to be specific to normalization of endpoints, not endpoint slices.

Copy link
Member Author

Choose a reason for hiding this comment

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

Since v1.33 corev1.Endpoints is deprecated, then it recommends us to use discoveryv1.EndpointSlice, so I replaced it. Should we ignore the lint error ?

Copy link
Member

Choose a reason for hiding this comment

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

Interesting... yep, probably should ignore the lint error. I'm not sure if EndpointSlices have similar diff issues that require normalization. But for now we should just preserve the Endpoint normalization logic and wait to see if bugs are reported for EndpointSlices.

@crenshaw-dev
Copy link
Member

Can you describe what go/k8s behavior made the replaces no longer necessary? I'm not sure I understand why they were ever necessary, but would love to be able to get rid of them. :-)

@pjiang-dev
Copy link
Contributor

Closing due to #735

@pjiang-dev pjiang-dev closed this Jun 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants