-
Notifications
You must be signed in to change notification settings - Fork 267
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: sort endpoint IP addresses before diffing #160
Conversation
…cal before diffing.
Codecov Report
@@ Coverage Diff @@
## master #160 +/- ##
==========================================
- Coverage 48.21% 48.14% -0.08%
==========================================
Files 36 36
Lines 2833 2858 +25
==========================================
+ Hits 1366 1376 +10
- Misses 1330 1339 +9
- Partials 137 143 +6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you @wtam2018 !
@@ -19,10 +19,17 @@ import ( | |||
"k8s.io/apimachinery/pkg/util/strategicpatch" | |||
"k8s.io/client-go/kubernetes/scheme" | |||
|
|||
"k8s.io/kubernetes/pkg/api/endpoints" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: can you please group third party dependencies together?
@wtam2018 resolve merge conflicts please |
It's unfortunate that we're adding more dependencies on the k/k repo. #56 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description:
This PR fixes argoproj/argo-cd#1816. For an Endpoint, unsorted/out of lexicographical order IP addresses in the desired state won't match the actual live state and the application won't able to move to "Synced" state. This PR adds normalize function to sort IP addresses before performing diff so that diff is successful and the application can go to "Synced" state.