From 16c99744473ee68a5b284deb20f125dc3d4e215e Mon Sep 17 00:00:00 2001 From: Sungguk Lim Date: Thu, 29 Jun 2023 16:11:00 +0900 Subject: [PATCH] Use WithObj --- pkg/client/fake/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/fake/doc.go b/pkg/client/fake/doc.go index 36e24b2f2c..d42347a2e2 100644 --- a/pkg/client/fake/doc.go +++ b/pkg/client/fake/doc.go @@ -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 := NewClientBuilder().WithScheme(scheme).Build() + client := NewClientBuilder().WithScheme(scheme).WithObj(initObjs...).Build() You can invoke the methods defined in the Client interface.