-
Notifications
You must be signed in to change notification settings - Fork 54
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
Migrate to SDK v3 #160
Migrate to SDK v3 #160
Conversation
Linting errors related to |
Rebased |
Tests are failing due to missing |
src/client/cached.go
Outdated
@@ -171,7 +170,7 @@ func (d *MultiDiscoveryCacher) discoverAndCache(timeout time.Duration) ([]HTTPCl | |||
err = d.Storage.Write(d.StorageKey, toCache) | |||
} | |||
if err != nil { | |||
d.Logger.WithError(err).Warnf("while storing %q in the cache", d.StorageKey) | |||
d.Logger.Warnf("Could not store %q in the cache: %v", d.StorageKey, err) |
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.
I wonder if we should log the raw data here, which would help debugging cache issues. Also, it would be nice to have unique error messages. Perhaps Decompose + Write part could be refactored into a function?
I fixed the imports here. Some details could be addressed here, but overall the PR looks good 👍 |
e37f717
to
cd32a8a
Compare
d1c6187
to
7f589cc
Compare
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
Holding merge until we perform end to end tests. |
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 , is wired that the version of the sdk we were using was kind of "almost" v3 from what i could read in the docs for the sdk , but still the protocol version on the json output was 2 and i saw you change it to 3, this is the most scary part to me, and how entities behave.
@gsanchezgavier There is a small change on how the Before release, we can upgrade the canaries cluster to this version and ensure that pods and containers keep the same entity IDs and names. |
e5dbded
to
44be8ad
Compare
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.
Just some small nits, overall LGTM. Nice work @roobre!
@roobre is this blocked by any task? there is the risk of forgetting about it |
I suggest we merge #227 first. |
Squashed commits and rebased on latest main. It's ready to review 🎉 |
043561a
to
44d6c4e
Compare
✅ roobre approved these changes on 5 Oct |
Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com> Co-authored-by: Roberto Santalla <roobre@roobre.es>
New SDK version does not need it anymore. Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
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. Had to merge logger changes with the first PR, as otherwise code did not compile.
This PR updates the integration SDK to version 3.
Closes #145