Skip to content

Commit 34a446d

Browse files
committed
[client-go] Fix argument ordering for fake scale client update
Fixes the argument order used when calling testing.NewUpdateSubresourceAction within the fake scale client. This was causing the generated action to swap the values of the Namespace and Subresource in the Action.
1 parent 21953d1 commit 34a446d

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/client-go/scale/fake

1 file changed

+1
-1
lines changed

staging/src/k8s.io/client-go/scale/fake/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (f *fakeNamespacedScaleClient) Get(ctx context.Context, resource schema.Gro
6060

6161
func (f *fakeNamespacedScaleClient) Update(ctx context.Context, resource schema.GroupResource, scale *autoscalingapi.Scale, opts metav1.UpdateOptions) (*autoscalingapi.Scale, error) {
6262
obj, err := f.fake.
63-
Invokes(testing.NewUpdateSubresourceAction(resource.WithVersion(""), f.namespace, "scale", scale), &autoscalingapi.Scale{})
63+
Invokes(testing.NewUpdateSubresourceAction(resource.WithVersion(""), "scale", f.namespace, scale), &autoscalingapi.Scale{})
6464

6565
if err != nil {
6666
return nil, err

0 commit comments

Comments
 (0)