From 85ec3ed24364fad9cd3472713762a02f58b264a6 Mon Sep 17 00:00:00 2001 From: Ben Keith Date: Wed, 11 Apr 2018 11:00:57 -0400 Subject: [PATCH] Fixing Update Function in FakeCustomStore --- staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go b/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go index 8d71c247497..b59e2eb2724 100644 --- a/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go +++ b/staging/src/k8s.io/client-go/tools/cache/fake_custom_store.go @@ -40,7 +40,7 @@ func (f *FakeCustomStore) Add(obj interface{}) error { // Update calls the custom Update function if defined func (f *FakeCustomStore) Update(obj interface{}) error { if f.UpdateFunc != nil { - return f.Update(obj) + return f.UpdateFunc(obj) } return nil }