open-nomad/command/agent/consul
Seth Hoenig 57375566d4
consul: register checks along with service on initial registration (#14944)
* consul: register checks along with service on initial registration

This PR updates Nomad's Consul service client to include checks in
an initial service registration, so that the checks associated with
the service are registered "atomically" with the service. Before, we
would only register the checks after the service registration, which
causes problems where the service is deemed healthy, even if one or
more checks are unhealthy - especially problematic in the case where
SuccessBeforePassing is configured.

Fixes #3935

* cr: followup to fix cause of extra consul logging

* cr: fix another bug

* cr: fixup changelog
2022-10-19 12:40:56 -05:00
..
acl_testing.go
catalog_testing.go consul: register checks along with service on initial registration (#14944) 2022-10-19 12:40:56 -05:00
config_entries_testing.go
connect.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
connect_proxies.go
connect_proxies_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
connect_proxies_testing.go
connect_test.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
group_test.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
int_test.go Vars: Update CT dependency to support variables. (#14399) 2022-08-30 15:26:01 -04:00
namespaces_client.go consul: allow stale namespace results (#12953) 2022-08-26 16:05:12 -07:00
namespaces_client_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
self.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
self_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
service_client.go consul: register checks along with service on initial registration (#14944) 2022-10-19 12:40:56 -05:00
service_client_test.go cleanup: remove another string-set helper function (#14902) 2022-10-17 14:14:52 -05:00
structs.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
testing.go cleanup: consolidate interfaces for workload restarting 2022-09-09 08:59:04 -05:00
unit_test.go consul: register checks along with service on initial registration (#14944) 2022-10-19 12:40:56 -05:00
version_checker.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00
version_checker_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00