mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Job: Consistentely use the same reveiver name in the controller
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
This commit is contained in:
parent
ce47f7b416
commit
d4959d8d29
@ -92,10 +92,10 @@ var backoffRecordKeyFunc = func(obj interface{}) (string, error) {
|
||||
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
|
||||
|
||||
if b, exists, _ := backoffRecordStore.store.GetByKey(key); exists {
|
||||
if b, exists, _ := s.store.GetByKey(key); exists {
|
||||
old := b.(*backoffRecord)
|
||||
backoff = &backoffRecord{
|
||||
key: old.key,
|
||||
|
Loading…
Reference in New Issue
Block a user