Skip to content

Commit

Permalink
update mock k8s client to have defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
colesnodgrass committed May 15, 2024
1 parent 9d862a0 commit e64b629
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cmd/local/local/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,16 @@ func (m *mockK8sClient) ServerVersionGet() (string, error) {
}

func (m *mockK8sClient) EventsWatch(ctx context.Context, namespace string) (watch.Interface, error) {
if m.eventsWatch == nil {
return watch.NewFake(), nil
}
return m.eventsWatch(ctx, namespace)
}

func (m *mockK8sClient) LogsGet(ctx context.Context, namespace string, name string) (string, error) {
if m.logsGet == nil {
return "LogsGet called", nil
}
return m.logsGet(ctx, namespace, name)
}

Expand Down

0 comments on commit e64b629

Please sign in to comment.