未验证 提交 ffa995f2 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #3014 from zackzhangkai/fix_app_status

fix application status
......@@ -112,6 +112,7 @@ func NewApplicationController(serviceInformer coreinformers.ServiceInformer,
deploymentInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: v.enqueueObject,
UpdateFunc: func(old, new interface{}) { v.enqueueObject(new) },
DeleteFunc: v.enqueueObject,
})
......@@ -120,6 +121,7 @@ func NewApplicationController(serviceInformer coreinformers.ServiceInformer,
statefulSetInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: v.enqueueObject,
UpdateFunc: func(old, new interface{}) { v.enqueueObject(new) },
DeleteFunc: v.enqueueObject,
})
......@@ -128,6 +130,7 @@ func NewApplicationController(serviceInformer coreinformers.ServiceInformer,
serviceInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: v.enqueueObject,
UpdateFunc: func(old, new interface{}) { v.enqueueObject(new) },
DeleteFunc: v.enqueueObject,
})
......@@ -136,6 +139,7 @@ func NewApplicationController(serviceInformer coreinformers.ServiceInformer,
strategyInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: v.enqueueObject,
UpdateFunc: func(old, new interface{}) { v.enqueueObject(new) },
DeleteFunc: v.enqueueObject,
})
......@@ -144,6 +148,7 @@ func NewApplicationController(serviceInformer coreinformers.ServiceInformer,
servicePolicyInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: v.enqueueObject,
UpdateFunc: func(old, new interface{}) { v.enqueueObject(new) },
DeleteFunc: v.enqueueObject,
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册