Skip to content

Commit e9f42d9

Browse files
committed
implemented Apply in fakeclient
1 parent 4e9e09d commit e9f42d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e-framework/fake-client/fake-client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ func (f Client) Get(_ context.Context, key client.ObjectKey, obj client.Object,
158158
return err
159159
}
160160

161+
func (f *Client) Apply(_ context.Context, _ runtime.ApplyConfiguration, _ ...client.ApplyOption) error {
162+
return fmt.Errorf("apply not supported in fake client")
163+
}
164+
161165
// List list all requested items in fake cluster
162166
func (f Client) List(_ context.Context, list client.ObjectList, opts ...client.ListOption) error {
163167
if f.errorInjector != nil {

0 commit comments

Comments
 (0)