Skip to content

Commit

Permalink
✨ fake: Update fake client doc.go to avoid the deprecated method (#2392)
Browse files Browse the repository at this point in the history
* Update fake client doc.go to avoid the deprecated method.

* Use WithObj
  • Loading branch information
sunglim committed Jun 30, 2023
1 parent a784ee7 commit e38e1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/fake/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Package fake provides a fake client for testing.
A fake client is backed by its simple object store indexed by GroupVersionResource.
You can create a fake client with optional objects.
client := NewFakeClientWithScheme(scheme, initObjs...) // initObjs is a slice of runtime.Object
client := NewClientBuilder().WithScheme(scheme).WithObj(initObjs...).Build()
You can invoke the methods defined in the Client interface.
Expand Down

0 comments on commit e38e1d9

Please sign in to comment.