mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 07:57:20 +00:00
Merge pull request #69125 from caesarxuchao/fix-dynamic-empty-scheme
Populates the fake dynamic client scheme Kubernetes-commit: 43ce5fbf41411babfacd1f5dda9e30fb19691f1e
This commit is contained in:
commit
aa75b7764b
@ -45,7 +45,7 @@ func NewSimpleDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object) *
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cs := &FakeDynamicClient{}
|
cs := &FakeDynamicClient{scheme: scheme}
|
||||||
cs.AddReactor("*", "*", testing.ObjectReaction(o))
|
cs.AddReactor("*", "*", testing.ObjectReaction(o))
|
||||||
cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
|
cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
|
||||||
gvr := action.GetResource()
|
gvr := action.GetResource()
|
||||||
|
Loading…
Reference in New Issue
Block a user