Skip to content

Commit

Permalink
Add interpolation on service canarymeta
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemarey committed Oct 15, 2020
1 parent afdf81b commit b9bd501
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/taskenv/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ func InterpolateServices(taskEnv *TaskEnv, services []*structs.Service) []*struc
service.Meta = meta
}

if len(service.CanaryMeta) > 0 {
meta := make(map[string]string, len(service.Meta))
for k, v := range service.Meta {
meta[k] = taskEnv.ReplaceEnv(v)
}
service.CanaryMeta = meta
}

interpolated[i] = service
}

Expand Down

0 comments on commit b9bd501

Please sign in to comment.