Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 3278322

Browse files
author
Craig Furman
committed
Try binding localhost only with no test network
1 parent d64128f commit 3278322

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/appliance/helpers_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ func (suite *ApplianceTestSuite) setupEnvtest() {
6363
AttachControlPlaneOutput: true,
6464
BinaryAssetsDirectory: suite.kubebuilderAssetPath(),
6565
}
66+
apiServerCfg := suite.testEnv.ControlPlane.GetAPIServer()
67+
apiServerCfg.Configure().Set("bind-address", "127.0.0.1")
68+
apiServerCfg.Configure().Set("advertise-address", "127.0.0.1")
6669
cfg, err := suite.testEnv.Start()
6770
require.NoError(t, err)
6871

0 commit comments

Comments
 (0)