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

Consul dependency updates #134

Merged
merged 6 commits into from
May 31, 2022
Merged

Consul dependency updates #134

merged 6 commits into from
May 31, 2022

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented May 26, 2022

Update the hashicorp/consul dependencies plus those it needs and then fix the problems that came up.

Fixes #132
Fixes #84

@eikenb eikenb added the bug label May 26, 2022
@eikenb eikenb added this to the v0.6.1 milestone May 26, 2022
@eikenb eikenb requested a review from a team May 26, 2022 19:21
eikenb added 5 commits May 26, 2022 12:25
Plus all the other dependencies that pulled in.
Consujl moved from logger -> logging and incorporated hclog but
otherwise it is pretty much the same.

Changes mostly involved swapping out our adaptations to their old
version not using hclog.
Consul updated their prometheus telemetry setup to use
go-metrics/prometheus's options struct. This reflects that change and
the few tweaks needed related to that update.
StatusHandler is an internal public struct used to track service status.
This replaces the older Notify interface, subsuming it as a field.

The Notify interface itself (used on a field of the StatusHandler) also
has added a new method, ServiceExists, which was added as part of the
Consul's Alias feature and which we don't support so use add a stubbed
out method.

The IDs used to track the checks have also changed from a string to
a struct. The struct contains the string and some enterprise meta data.
For now we just ignore the enterprise portion internally.
@eikenb eikenb force-pushed the dependency-updates branch from cea6635 to 824ec85 Compare May 26, 2022 19:26
None of these caused any issues.
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

yay for Consul dependency update. the way the commits were organized made this really easy to review, thanks!

@eikenb eikenb merged commit f5533fd into main May 31, 2022
@eikenb eikenb deleted the dependency-updates branch May 31, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants