mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Merge pull request #128401 from tenzen-y/use-same-receiver-name
Job: Consistentely use the same reveiver name in the controller
This commit is contained in:
commit
5f594f4215
@ -92,10 +92,10 @@ var backoffRecordKeyFunc = func(obj interface{}) (string, error) {
|
|||||||
return "", fmt.Errorf("could not find key for obj %#v", obj)
|
return "", fmt.Errorf("could not find key for obj %#v", obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (backoffRecordStore *backoffStore) newBackoffRecord(key string, newSucceededPods []*v1.Pod, newFailedPods []*v1.Pod) backoffRecord {
|
func (s *backoffStore) newBackoffRecord(key string, newSucceededPods []*v1.Pod, newFailedPods []*v1.Pod) backoffRecord {
|
||||||
var backoff *backoffRecord
|
var backoff *backoffRecord
|
||||||
|
|
||||||
if b, exists, _ := backoffRecordStore.store.GetByKey(key); exists {
|
if b, exists, _ := s.store.GetByKey(key); exists {
|
||||||
old := b.(*backoffRecord)
|
old := b.(*backoffRecord)
|
||||||
backoff = &backoffRecord{
|
backoff = &backoffRecord{
|
||||||
key: old.key,
|
key: old.key,
|
||||||
|
Loading…
Reference in New Issue
Block a user