From cc7a171a1e7e1059501b0c1bb58d833d9eaced26 Mon Sep 17 00:00:00 2001 From: ykadowak Date: Tue, 27 Feb 2024 07:45:45 +0000 Subject: [PATCH] Refactor Co-authored-by: Yusuke Kato --- pkg/index/operator/service/operator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/index/operator/service/operator.go b/pkg/index/operator/service/operator.go index 86e450cd9f..0ae30c55d7 100644 --- a/pkg/index/operator/service/operator.go +++ b/pkg/index/operator/service/operator.go @@ -81,13 +81,10 @@ func New(agentName string, opts ...Option) (o Operator, err error) { return nil, err } - 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 }