提交 d1e7f35b 编写于 作者: Z zackzhangkai

fix application status

Signed-off-by: Nzackzhangkai <zackzhang@yunify.com>
上级 9961a1df
......@@ -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.
先完成此消息的编辑!
想要评论请 注册