open-nomad/client/serviceregistration
Seth Hoenig 07543f8bdf
nsd: always set deregister flag after deregistration of group (#16289)
* services: always set deregister flag after deregistration of group

This PR fixes a bug where the group service hook's deregister flag was
not set in some cases, causing the hook to attempt deregistrations twice
during job updates (alloc replacement).

In the tests ... we used to assert on the wrong behvior (remove twice) which
has now been corrected to assert we remove only once.

This bug was "silent" in the Consul provider world because the error logs for
double deregistration only show up in Consul logs; with the Nomad provider the
error logs are in the Nomad agent logs.

* services: cleanup group service hook tests
2023-03-17 09:44:21 -05:00
..
checks services: Set Nomad's User-Agent by default on HTTP checks for nomad services (#16248) 2023-02-23 08:10:42 -06:00
mock Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
nsd nsd: always set deregister flag after deregistration of group (#16289) 2023-03-17 09:44:21 -05:00
wrapper
address.go
address_test.go
id.go
id_test.go
service_registration.go consul: correctly interpret missing consul checks as unhealthy (#15822) 2023-01-19 14:01:12 -06:00
service_registration_test.go
watcher.go
watcher_test.go deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
workload.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
workload_test.go