Typo fix: watchActcion

Signed-off-by: Stephen Kitt <skitt@redhat.com>

Kubernetes-commit: 3d53bfec09f1cb8dde5aed84ce1d330a34aec61c
This commit is contained in:
Stephen Kitt 2025-04-14 17:19:50 +02:00 committed by Kubernetes Publisher
parent f78427e367
commit 03fb151034

View File

@ -211,8 +211,8 @@ func NewClientset(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()