Skip to content

Commit 5168c8e

Browse files
committed
bootstrap: parameterize xds port, admin host and port
Signed-off-by: Lahiru De Silva <[email protected]>
1 parent c287987 commit 5168c8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/infrastructure/kubernetes/deployment_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func TestExpectedDeployment(t *testing.T) {
111111
checkLabels(t, deploy, deploy.Labels)
112112

113113
// Create a bootstrap config, render it into an arg, and ensure it's as expected.
114-
cfg := &bootstrapConfig{parameters: bootstrapParameters{XdsServerAddress: envoyGatewayService, XdsServerPort: 18000, AdminServerAddress: "127.0.0.1", AdminServerPort: 19000}}
114+
cfg := &bootstrapConfig{parameters: bootstrapParameters{XdsServerAddress: envoyGatewayService, XdsServerPort: envoyGatewayPort,
115+
AdminServerAddress: envoyGatewayAdminService, AdminServerPort: envoyGatewayAdminPort}}
115116
err = cfg.render()
116117
require.NoError(t, err)
117118
checkContainerHasArg(t, container, fmt.Sprintf("--config-yaml %s", cfg.rendered))

0 commit comments

Comments
 (0)