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
commit 43ce5fbf41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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