Skip to content

Commit 2b2cf8d

Browse files
authored
Merge pull request kubernetes#80700 from mrkm4ntr/add-error-check
Add missing error check
2 parents 7937aa6 + 4635f16 commit 2b2cf8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/controller/podautoscaler/horizontal.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ func (a *HorizontalController) reconcileKey(key string) (deleted bool, err error
357357
delete(a.scaleDownEvents, key)
358358
return true, nil
359359
}
360+
if err != nil {
361+
return false, err
362+
}
360363

361364
return false, a.reconcileAutoscaler(hpa, key)
362365
}

0 commit comments

Comments
 (0)