Skip to content

Commit

Permalink
[YUNIKORN-2019] Remove redundant informer call in spark.go ServiceInit (
Browse files Browse the repository at this point in the history
#685)

Closes: #685

Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
brandboat authored and FrankYang0529 committed Oct 6, 2023
1 parent c633925 commit 0253b4a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/appmgmt/sparkoperator/spark.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func (os *Manager) ServiceInit() error {
var factoryOpts []crInformers.SharedInformerOption
os.crdInformerFactory = crInformers.NewSharedInformerFactoryWithOptions(
crClient, 0, factoryOpts...)
os.crdInformerFactory.Sparkoperator().V1beta2().SparkApplications().Informer()
os.crdInformer = os.crdInformerFactory.Sparkoperator().V1beta2().SparkApplications().Informer()
os.crdInformer.AddEventHandler(k8sCache.ResourceEventHandlerFuncs{
UpdateFunc: os.updateApplication,
Expand Down

0 comments on commit 0253b4a

Please sign in to comment.