hashicorp / hashicorp/consul-template
Integration with /catalog/gateway-services/:gateway endpoint
- Dominant language
- Go
- Stars
- 4.8k
- Forks
- 801
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 6
Description
Is there a way to use /catalog/gateway-services/:gateway endpoint via consul-template
It's understood that ingress-gateway is registered as a service which can be used to get the Address and Port, but we need more than that.
We have nginx sitting in front of ingress-gateway, thought is to dynamically add nginx server blocks with same host headers that are registered with ingress-gateway.
Contributor guide
Research direction
Start by reviewing the /catalog/gateway-services/:gateway endpoint and how consul-template exposes Consul service data to templates. Determine whether the requested gateway host-header data is available, then define the expected rendered output for nginx server blocks and add coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100