You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dependency.HealthService.String() returns the same value for service and connect invocation, and that breaks templates when both functions are called with the same parameter.
In my case I have an external service registered in the catalog, and a terminating-gateway configured for it. I want to get IP:Port from connect, and some metadata from service, and that doesn't work
Consul Template version
consul-template v0.25.1
Configuration
consul-template -dry -once -template ./sample.tpl
This template is not very useful but it's perfect to pinpoint the bug
Thanks for the report @danieleva and much thanks for the simple case to reproduce, that always makes things way easier on my end which I appreciate.
Looks like like both connect and service look-ups are using the same keys for the cache/value-store. It should be a straightforward fix and will be in the next release, which should be soon as the latest release had an annoying regression in the shell handling.
The IDs need to be different as they are used as the cache keys and
using the same ID means `connect` and `service` would overwrite each
other if both used. (this is bad)
The `connect` function re-uses the health `service` code as it is
identical except for an additional option. When adding connect the ID
was unintentially left the same, it should be different.
Fixes#1458
The IDs need to be different as they are used as the cache keys and
using the same ID means `connect` and `service` would overwrite each
other if both used. (this is bad)
The `connect` function re-uses the health `service` code as it is
identical except for an additional option. When adding connect the ID
was unintentially left the same, it should be different.
Fixes#1458
dependency.HealthService.String()
returns the same value forservice
andconnect
invocation, and that breaks templates when both functions are called with the same parameter.In my case I have an external service registered in the catalog, and a terminating-gateway configured for it. I want to get IP:Port from
connect
, and some metadata fromservice
, and that doesn't workConsul Template version
consul-template v0.25.1
Configuration
This template is not very useful but it's perfect to pinpoint the bug
"myservice" is registered directly into consul catalog, and a terminating-gateway is assigned to it via config entry
Command
Expected behavior
I would expect the output to be:
Actual behavior
What actually happened?
Steps to reproduce
Any template that uses both functions will trigger it.
The text was updated successfully, but these errors were encountered: