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

[Feature] Support health checks in consul_service resource #54

Closed
lawliet89 opened this issue Jul 17, 2018 · 7 comments
Closed

[Feature] Support health checks in consul_service resource #54

lawliet89 opened this issue Jul 17, 2018 · 7 comments

Comments

@lawliet89
Copy link
Contributor

Affected Resource(s)

  • consul_service

I would like to request for the ability to define health checks for services registered with the consul_service resource.

As far as I understand, the resource is meant for use with external services and it would be great if we can also define health checks for the external service. Then, we can use something else like Consul ESM to do the actual health checking.

@pearkes
Copy link
Contributor

pearkes commented Jul 17, 2018

I agree, this would be a good addition.

@remilapeyre
Copy link
Contributor

Hi @pearkes, what is the status of this proposal? I don't know go but have the same need than @lawliet89 and could try to implement it if nobody have time to spend on it.

@remilapeyre
Copy link
Contributor

Hi, I tried to make a PR to add this feature, I never wrote Go before so it's probably hideous. I had to make a change in vendor/github.com/hashicorp/consul/api/catalog.go which is probably bad. Do you want me to make a new PR in hashicorp/consul ?

@pearkes
Copy link
Contributor

pearkes commented Oct 22, 2018

@remilapeyre thanks for opening that PR!

Yes, for us to change the API interface that is vendored we need to update the upstream at hashicorp/consul (which you could make a separate PR for) and then re-vendor here with govendor fetch github.com/hashicorp/consul@SHA. I can keep an eye out for that PR an d once that is done take a closer look here.

@remilapeyre
Copy link
Contributor

@pearkes I opened a PR in Consul at hashicorp/consul#4849

@pearkes
Copy link
Contributor

pearkes commented Oct 29, 2018

@remilapeyre awesome I think we're closer! Once you get that updated I'll take a closer review.

@pearkes
Copy link
Contributor

pearkes commented Apr 11, 2019

This is done via #64.

@pearkes pearkes closed this as completed Apr 11, 2019
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

No branches or pull requests

3 participants