Skip to content

Commit 5f594f4

Browse files
authored
Merge pull request kubernetes#128401 from tenzen-y/use-same-receiver-name
Job: Consistentely use the same reveiver name in the controller
2 parents 66b3dc1 + d4959d8 commit 5f594f4

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)