From e18910ae07b939d3e7fe9547e1c8d4ac0d3f8b0f Mon Sep 17 00:00:00 2001 From: "Da K. Ma" Date: Fri, 31 May 2019 21:05:10 +0800 Subject: [PATCH] Fix job controller panic --- pkg/controllers/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controllers/cache/cache.go b/pkg/controllers/cache/cache.go index 4434e701b5..de3747dd48 100644 --- a/pkg/controllers/cache/cache.go +++ b/pkg/controllers/cache/cache.go @@ -229,7 +229,7 @@ func (jc *jobCache) Run(stopCh <-chan struct{}) { wait.Until(jc.worker, 0, stopCh) } -func (jc jobCache) TaskCompleted(jobKey, taskName string) bool { +func (jc *jobCache) TaskCompleted(jobKey, taskName string) bool { jc.Lock() defer jc.Unlock()