open-nomad/client/allocrunner/taskrunner
Seth Hoenig 804f9fdb93
services: ensure task group is set on service hook (#16240)
This PR fixes a bug where the task group information was not being set
on the serviceHook.AllocInfo struct, which is needed later on for calculating
the CheckID of a nomad service check. The CheckID is calculated independently
from multiple callsites, and the information being passed in must be consistent,
including the group name.

The workload.AllocInfo.Group was not set at this callsite, due to the bug fixed in this PR.
 https://github.com/hashicorp/nomad/blob/main/client/serviceregistration/nsd/nsd.go#L114
2023-02-22 10:22:48 -06:00
..
getter artifact: protect against unbounded artifact decompression (1.5.0) (#16151) 2023-02-14 09:28:39 -06:00
interfaces
restarts build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
state cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
template users: eliminate LookupGroupId and its one use case (#16093) 2023-02-08 14:57:09 -06:00
testdata
api_hook.go Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00
api_hook_test.go Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00
artifact_hook.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
artifact_hook_test.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
connect_native_hook.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
connect_native_hook_test.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
device_hook.go
device_hook_test.go
dispatch_hook.go
dispatch_hook_test.go
driver_handle.go client: enforce max_kill_timeout client configuration 2022-07-06 15:29:38 -05:00
envoy_bootstrap_hook.go docs: how to troubleshoot consul connect envoy (#15908) 2023-02-02 14:20:26 -06:00
envoy_bootstrap_hook_test.go docs: how to troubleshoot consul connect envoy (#15908) 2023-02-02 14:20:26 -06:00
envoy_version_hook.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
envoy_version_hook_test.go
errors.go
errors_test.go
identity_hook.go Add option to expose workload token to task (#15755) 2023-02-02 10:59:14 -08:00
identity_hook_test.go Add option to expose workload token to task (#15755) 2023-02-02 10:59:14 -08:00
lazy_handle.go
lifecycle.go Task lifecycle restart (#14127) 2022-08-24 17:43:07 -04:00
logmon_hook.go
logmon_hook_test.go cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
logmon_hook_unix_test.go test: use T.TempDir to create temporary test directory (#12853) 2022-05-12 11:42:40 -04:00
plugin_supervisor_hook.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
remotetask_hook.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
script_check_hook.go
script_check_hook_test.go services: ensure task group is set on service hook (#16240) 2023-02-22 10:22:48 -06:00
service_hook.go services: ensure task group is set on service hook (#16240) 2023-02-22 10:22:48 -06:00
service_hook_test.go Add Namespace, Job and Group to envoy stats (#14311) 2022-09-22 10:38:21 -04:00
sids_hook.go
sids_hook_test.go Task lifecycle restart (#14127) 2022-08-24 17:43:07 -04:00
stats_hook.go
stats_hook_test.go
task_dir_hook.go
task_runner.go Add INFO task even log line and make logmon less noisy (#15842) 2023-01-20 14:35:00 -08:00
task_runner_getters.go Add option to expose workload token to task (#15755) 2023-02-02 10:59:14 -08:00
task_runner_hooks.go Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00
task_runner_test.go Add option to expose workload token to task (#15755) 2023-02-02 10:59:14 -08:00
tasklet.go
tasklet_test.go
template_hook.go template: restore driver handle on update (#15915) 2023-01-27 10:55:59 -05:00
validate_hook.go
validate_hook_test.go
vault_hook.go renamed stanza to block for consistency with other projects (#15941) 2023-01-30 15:48:43 +01:00
vault_hook_test.go
volume_hook.go volume: Add the missing option propagation_mode (#15626) 2023-01-30 09:32:07 -05:00
volume_hook_test.go