mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-01 15:17:19 +00:00
Fix a typo in fake clientset generator
Signed-off-by: Jian Qiu <jqiu@redhat.com> Kubernetes-commit: ad47298caa65fd20386aeb453cf74964963c47c8
This commit is contained in:
committed by
Kubernetes Publisher
parent
01d95ed558
commit
12d87ef94c
@@ -160,8 +160,8 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset {
|
||||
cs.AddReactor("*", "*", testing.ObjectReaction(o))
|
||||
cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
|
||||
var opts metav1.ListOptions
|
||||
if watchActcion, ok := action.(testing.WatchActionImpl); ok {
|
||||
opts = watchActcion.ListOptions
|
||||
if watchAction, ok := action.(testing.WatchActionImpl); ok {
|
||||
opts = watchAction.ListOptions
|
||||
}
|
||||
gvr := action.GetResource()
|
||||
ns := action.GetNamespace()
|
||||
|
Reference in New Issue
Block a user