Merge pull request #69125 from caesarxuchao/fix-dynamic-empty-scheme

Populates the fake dynamic client scheme
This commit is contained in:
k8s-ci-robot
2018-10-01 20:02:15 -07:00
committed by GitHub

View File

@@ -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()