Skip to content

Commit

Permalink
do not support job update
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Apr 8, 2019
1 parent 69b6e85 commit 8623652
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controllers/job/job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8623652

Please sign in to comment.