diff --git a/dynamic/client.go b/dynamic/client.go index b93a0ff195..833e43537b 100644 --- a/dynamic/client.go +++ b/dynamic/client.go @@ -280,6 +280,7 @@ func (rc *ResourceClient) Watch(opts metav1.ListOptions) (watch.Interface, error Watch() } +// Patch applies the patch and returns the patched resource. func (rc *ResourceClient) Patch(name string, pt types.PatchType, data []byte) (*unstructured.Unstructured, error) { result := new(unstructured.Unstructured) resourceName, subresourceName := rc.parseResourceSubresourceName() diff --git a/scale/client_test.go b/scale/client_test.go index f4f2af3d68..6301320f3c 100644 --- a/scale/client_test.go +++ b/scale/client_test.go @@ -99,7 +99,7 @@ func fakeScaleClient(t *testing.T) (ScalesGetter, []schema.GroupResource) { restMapperRes, err := discovery.GetAPIGroupResources(fakeDiscoveryClient) if err != nil { - t.Fatalf("unexpected error while constructing resource list from fake discovery client: %v") + t.Fatalf("unexpected error while constructing resource list from fake discovery client: %v", err) } restMapper := discovery.NewRESTMapper(restMapperRes, apimeta.InterfacesForUnstructured)