mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Allow Proxy to be initialized with store
The proxy should be able to reuse a store on initialization. Minor cleanup to make experimentation with the proxy easier.
This commit is contained in:
@@ -61,7 +61,7 @@ func TestNewServicesSourceApi_UpdatesAndMultipleServices(t *testing.T) {
|
||||
|
||||
ch := make(chan ServiceUpdate)
|
||||
|
||||
newServicesSourceApiFromLW(lw, 30*time.Second, ch)
|
||||
cache.NewReflector(lw, &api.Service{}, NewServiceStore(nil, ch), 30*time.Second).Run()
|
||||
|
||||
got, ok := <-ch
|
||||
if !ok {
|
||||
@@ -172,7 +172,7 @@ func TestNewEndpointsSourceApi_UpdatesAndMultipleEndpoints(t *testing.T) {
|
||||
|
||||
ch := make(chan EndpointsUpdate)
|
||||
|
||||
newEndpointsSourceApiFromLW(lw, 30*time.Second, ch)
|
||||
cache.NewReflector(lw, &api.Endpoints{}, NewEndpointsStore(nil, ch), 30*time.Second).Run()
|
||||
|
||||
got, ok := <-ch
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user