Skip to content

Commit d4959d8

Browse files
committed
Job: Consistentely use the same reveiver name in the controller
Signed-off-by: Yuki Iwai <[email protected]>
1 parent ce47f7b commit d4959d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/job/backoff_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ var backoffRecordKeyFunc = func(obj interface{}) (string, error) {
9292
return "", fmt.Errorf("could not find key for obj %#v", obj)
9393
}
9494

95-
func (backoffRecordStore *backoffStore) newBackoffRecord(key string, newSucceededPods []*v1.Pod, newFailedPods []*v1.Pod) backoffRecord {
95+
func (s *backoffStore) newBackoffRecord(key string, newSucceededPods []*v1.Pod, newFailedPods []*v1.Pod) backoffRecord {
9696
var backoff *backoffRecord
9797

98-
if b, exists, _ := backoffRecordStore.store.GetByKey(key); exists {
98+
if b, exists, _ := s.store.GetByKey(key); exists {
9999
old := b.(*backoffRecord)
100100
backoff = &backoffRecord{
101101
key: old.key,

0 commit comments

Comments
 (0)