Move hostIP detection from master to server
Add PublicAddress in test files Move valid public addr into util
This commit is contained in:
@@ -21,6 +21,7 @@ package integration
|
||||
// This file tests use of the secrets API resource.
|
||||
|
||||
import (
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
@@ -81,6 +82,7 @@ func TestSecrets(t *testing.T) {
|
||||
Authorizer: apiserver.NewAlwaysAllowAuthorizer(),
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
StorageVersions: storageVersions,
|
||||
PublicAddress: net.ParseIP("192.168.10.4"),
|
||||
})
|
||||
|
||||
framework.DeleteAllEtcdKeys()
|
||||
|
||||
Reference in New Issue
Block a user