open-nomad/jobspec/test-fixtures/tg-service-connect-resources.hcl
Seth Hoenig ffe7f87912 connect: fix bug where sidecar_task.resources was ignored with hcl1
The HCL1 parser did not respect connect.sidecar_task.resources if the
connect.sidecar_service block was not set (an optimiztion that no longer
makes sense with connect gateways).

Fixes #10899
2022-01-25 10:17:54 -06:00

21 lines
382 B
HCL

job "sidecar_task_resources" {
type = "service"
group "group" {
service {
name = "example"
connect {
# should still work without sidecar_service being set (i.e. connect gateway)
sidecar_task {
resources {
cpu = 111
memory = 222
memory_max = 333
}
}
}
}
}
}