Skip to content

Commit 2b62b91

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Add mysql proxy port to the toxiproxy service
1 parent 4a99962 commit 2b62b91

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

install/installer/pkg/components/toxiproxy/constants.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
package toxiproxy
55

66
const (
7-
Component = "toxiproxy"
8-
HttpContainerPort = 8474
9-
HttpServicePort = 8474
10-
HttpPortName = "http"
7+
Component = "toxiproxy"
8+
HttpPortName = "http"
9+
HttpContainerPort = 8474
10+
HttpServicePort = 8474
11+
MySqlProxyPortName = "mysql"
12+
MySqlProxyContainerPort = 3306
13+
MySqlProxyServicePort = 3306
1114
)

install/installer/pkg/components/toxiproxy/service.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ func service(ctx *common.RenderContext) ([]runtime.Object, error) {
1515
ContainerPort: HttpContainerPort,
1616
ServicePort: HttpServicePort,
1717
},
18+
{
19+
Name: MySqlProxyPortName,
20+
ContainerPort: MySqlProxyContainerPort,
21+
ServicePort: MySqlProxyServicePort,
22+
},
1823
}
1924

2025
return common.GenerateService(Component, servicePorts)(ctx)

0 commit comments

Comments
 (0)