Skip to content

Commit e38e1d9

Browse files
authored
✨ fake: Update fake client doc.go to avoid the deprecated method (#2392)
* Update fake client doc.go to avoid the deprecated method. * Use WithObj
1 parent a784ee7 commit e38e1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/fake/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Package fake provides a fake client for testing.
2020
A fake client is backed by its simple object store indexed by GroupVersionResource.
2121
You can create a fake client with optional objects.
2222
23-
client := NewFakeClientWithScheme(scheme, initObjs...) // initObjs is a slice of runtime.Object
23+
client := NewClientBuilder().WithScheme(scheme).WithObj(initObjs...).Build()
2424
2525
You can invoke the methods defined in the Client interface.
2626

0 commit comments

Comments
 (0)