From db20e16b87b38ace132c375f9ae414a98b451d7b Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 26 Sep 2018 18:32:49 -0700 Subject: [PATCH] Populates the fake dynamic client scheme --- staging/src/k8s.io/client-go/dynamic/fake/simple.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/client-go/dynamic/fake/simple.go b/staging/src/k8s.io/client-go/dynamic/fake/simple.go index 24e5c7bfff7..c04b788362d 100644 --- a/staging/src/k8s.io/client-go/dynamic/fake/simple.go +++ b/staging/src/k8s.io/client-go/dynamic/fake/simple.go @@ -45,7 +45,7 @@ func NewSimpleDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object) * } } - cs := &FakeDynamicClient{} + cs := &FakeDynamicClient{scheme: scheme} cs.AddReactor("*", "*", testing.ObjectReaction(o)) cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { gvr := action.GetResource()