open-nomad/command/agent/consul
Seth Hoenig d557d6bf94 consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered
This PR fixes a bug where sidecar services would be re-registered into Consul every ~30
seconds, caused by the parent service having its tags field set and the sidecar_service
tags unset. Nomad would directly compare the tags between its copy of the sidecar service
definition and the tags of the sidecar service reported by Consul. This does not work,
because Consul will under-the-hood set the sidecar service tags to inherit the parent
service tags if the sidecar service tags are unset. The comparison then done by Nomad
would not match, if the parent sidecar tags are set.

Fixes #10025
2021-02-22 12:02:58 -06:00
..
acl_testing.go comments: cleanup some leftover debug comments and such 2020-01-31 19:04:35 -06:00
catalog_testing.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
check_watcher.go client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
check_watcher_test.go consul: add test for check watcher deadlock 2019-07-18 08:24:09 -07:00
config_entries_testing.go consul/connect: add initial support for ingress gateways 2020-08-21 16:21:54 -05:00
connect.go pr comments 2021-02-13 02:42:14 +02:00
connect_proxies.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
connect_proxies_test.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
connect_proxies_testing.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
connect_test.go pr comments 2021-02-13 02:42:14 +02:00
group_test.go consul/connect: fixup tests to use new consul sdk 2020-08-24 12:02:41 -05:00
int_test.go consul/connect: fixup tests to use new consul sdk 2020-08-24 12:02:41 -05:00
service_client.go consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered 2021-02-22 12:02:58 -06:00
service_client_test.go consul/connect: Fix bug where connect sidecar services would be unnecessarily re-registered 2021-02-22 12:02:58 -06:00
structs.go Consul with CNI and host_network addresses (#9095) 2020-10-15 15:32:21 -04:00
testing.go client: improve group service stanza interpolation and check_re… (#6586) 2019-11-18 13:04:01 -05:00
unit_test.go command/agent/consul: remove duplicated tests 2021-01-06 14:11:31 -05:00
version_checker.go agent + consul 2018-09-13 10:43:40 -07:00
version_checker_test.go Replace Consul TLSSkipVerify handling 2018-03-14 17:43:06 -07:00