From e7051f2e3862de58adf442bf96a547c4e530c99f Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 11 Jan 2023 10:01:14 -0800 Subject: [PATCH] Check Nomad group meta tags This was intended originally and included in the documentation, but missed in the implementation. --- internal/provider/nomad/task.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/provider/nomad/task.go b/internal/provider/nomad/task.go index 22367ee3..faefe9d3 100644 --- a/internal/provider/nomad/task.go +++ b/internal/provider/nomad/task.go @@ -66,6 +66,8 @@ func (c *Client) listTaskImages() []model.Image { for _, taskGroup := range jobInfo.TaskGroups { // Get task group service labels groupLabels := map[string]string{} + groupLabels = updateMap(groupLabels, taskGroup.Meta) + for _, service := range taskGroup.Services { groupLabels = updateMap(groupLabels, parseServiceTags(service.Tags)) }