Skip to content

Commit 564258d

Browse files
committed
utils/compose: change service command to []string
1 parent c62dd11 commit 564258d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

e2e/forwarder/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func HttpbinService() *Service {
5353
return &Service{
5454
Name: HttpbinServiceName,
5555
Image: Image,
56-
Command: "test httpbin",
56+
Command: []string{"test", "httpbin"},
5757
Environment: map[string]string{
5858
"FORWARDER_API_ADDRESS": ":10000",
5959
},
@@ -64,7 +64,7 @@ func GRPCTestService() *Service {
6464
s := &Service{
6565
Name: GRPCTestServiceName,
6666
Image: Image,
67-
Command: "test grpc",
67+
Command: []string{"test", "grpc"},
6868
Environment: map[string]string{
6969
"FORWARDER_ADDRESS": ":1443",
7070
},

utils/compose/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type ServiceNetwork struct {
1818
type Service struct {
1919
Name string `yaml:"-"`
2020
Image string `yaml:"image,omitempty"`
21-
Command string `yaml:"command,omitempty"`
21+
Command []string `yaml:"command,omitempty"`
2222
Environment map[string]string `yaml:"environment,omitempty"`
2323
Ports []string `yaml:"ports,omitempty"`
2424
Volumes []string `yaml:"volumes,omitempty"`

0 commit comments

Comments
 (0)