Skip to content

Commit 4635f16

Browse files
committed
Add missing error check
1 parent c1d2ac4 commit 4635f16

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
@@ -342,6 +342,9 @@ func (a *HorizontalController) reconcileKey(key string) (deleted bool, err error
342342
delete(a.recommendations, key)
343343
return true, nil
344344
}
345+
if err != nil {
346+
return false, err
347+
}
345348

346349
return false, a.reconcileAutoscaler(hpa, key)
347350
}

0 commit comments

Comments
 (0)