From 8046b927f1978749e8cf820d309be79082863540 Mon Sep 17 00:00:00 2001 From: xuzhonghu Date: Mon, 8 Apr 2019 20:02:28 +0800 Subject: [PATCH] Do not support job update --- pkg/controllers/job/job_controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/controllers/job/job_controller.go b/pkg/controllers/job/job_controller.go index d80b27d551..cc34525796 100644 --- a/pkg/controllers/job/job_controller.go +++ b/pkg/controllers/job/job_controller.go @@ -118,8 +118,9 @@ func NewJobController(config *rest.Config) *Controller { cc.jobInformer = vkinfoext.NewSharedInformerFactory(cc.vkClients, 0).Batch().V1alpha1().Jobs() cc.jobInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ - AddFunc: cc.addJob, - UpdateFunc: cc.updateJob, + AddFunc: cc.addJob, + // TODO: enable this until we find an appropriate way. + // UpdateFunc: cc.updateJob, DeleteFunc: cc.deleteJob, }) cc.jobLister = cc.jobInformer.Lister()