R.B. Boyer b2979f6edf
testing/deployer: rename various terms to better align with v2 and avoid confusion (#19600)
Conceptually renaming the following topology terms to avoid confusion with v2 and to better align with it:

- ServiceID -> ID
- Service -> Workload
- Upstream -> Destination
2023-11-10 13:22:06 -06:00

26 lines
538 B
Cheetah

resource "docker_container" "{{.Node.DockerName}}-{{.Workload.ID.TFString}}" {
name = "{{.Node.DockerName}}-{{.Workload.ID.TFString}}"
network_mode = "container:${docker_container.{{.PodName}}.id}"
image = docker_image.{{.ImageResource}}.image_id
restart = "on-failure"
{{- range $k, $v := .Labels }}
labels {
label = "{{ $k }}"
value = "{{ $v }}"
}
{{- end }}
env = [
{{- range .Workload.Env }}
"{{.}}",
{{- end}}
]
command = [
{{- range .Workload.Command }}
"{{.}}",
{{- end }}
]
}