Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
Co-authored-by: Yusuke Kato <[email protected]>
  • Loading branch information
ykadowak and kpango committed Feb 27, 2024
1 parent c979b97 commit cc7a171
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/index/operator/service/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,10 @@ func New(agentName string, opts ...Option) (o Operator, err error) {
return nil, err
}

Check warning on line 82 in pkg/index/operator/service/operator.go

View check run for this annotation

Codecov / codecov/patch

pkg/index/operator/service/operator.go#L80-L82

Added lines #L80 - L82 were not covered by tests

var k8sOpts []k8s.Option
k8sOpts = append(k8sOpts,
operator.ctrl, err = k8s.New(
k8s.WithResourceController(podController),
k8s.WithResourceController(jobController),
)

operator.ctrl, err = k8s.New(k8sOpts...)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit cc7a171

Please sign in to comment.