Skip to content

Commit 8393444

Browse files
committed
fix(catalog): no operatorgroups in a namespace should be an error when resolving
1 parent 1849f65 commit 8393444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lib/scoped/querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func QueryServiceAccountFromNamespace(logger *logrus.Entry, crclient versioned.I
7070
}
7171

7272
if len(groups) == 0 {
73-
logger.Warn("no operator group found that is managing this namespace")
73+
err = fmt.Errorf("no operator group found that is managing this namespace")
7474
return
7575
}
7676

0 commit comments

Comments
 (0)