This is an automated email from the ASF dual-hosted git repository.
payang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new 0253b4ad [YUNIKORN-2019] Remove redundant informer call in spark.go
ServiceInit (#685)
0253b4ad is described below
commit 0253b4ad1a096c02767dd5cbe179fe8c4277edfb
Author: brandboat <[email protected]>
AuthorDate: Fri Oct 6 23:20:33 2023 +0800
[YUNIKORN-2019] Remove redundant informer call in spark.go ServiceInit
(#685)
Closes: #685
Signed-off-by: PoAn Yang <[email protected]>
---
pkg/appmgmt/sparkoperator/spark.go | 1 -
1 file changed, 1 deletion(-)
diff --git a/pkg/appmgmt/sparkoperator/spark.go
b/pkg/appmgmt/sparkoperator/spark.go
index 5aa7cc73..a1caf655 100644
--- a/pkg/appmgmt/sparkoperator/spark.go
+++ b/pkg/appmgmt/sparkoperator/spark.go
@@ -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,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]