Run tests on localhost to increase security and avoid macOS firewall popup dialogs
@@ -184,6 +184,7 @@ func (t *TestEnvironmentConfiguration) Build() (*TestEnvironment, error) {
PollInterval: time.Second,
ValidatingWebhooks: validatingWebhooks,
MutatingWebhooks: mutatingWebhooks,
+ LocalServingHost: "localhost",
}
if _, err := t.env.Start(); err != nil {
@@ -194,6 +195,7 @@ func (t *TestEnvironmentConfiguration) Build() (*TestEnvironment, error) {
Scheme: scheme.Scheme,
MetricsBindAddress: "0",
CertDir: t.env.WebhookInstallOptions.LocalServingCertDir,
+ Host: t.env.WebhookInstallOptions.LocalServingHost,
Port: t.env.WebhookInstallOptions.LocalServingPort,
}
