Skip to content

Commit 6b92c3b

Browse files
committed
return early if we fail to list requests from lister in janitor job
Signed-off-by: James Munnelly <[email protected]>
1 parent a71341e commit 6b92c3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manager/manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ func NewManager(opts Options) (*Manager, error) {
209209
reqs, err := lister.List(labels.Everything())
210210
if err != nil {
211211
janitorLogger.Error(err, "failed listing existing requests")
212+
return
212213
}
213214

214215
existsMap := make(map[types.UID]struct{})

0 commit comments

Comments
 (0)