We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a401647 commit 1d8e194Copy full SHA for 1d8e194
pkg/controller/operators/olm/operator.go
@@ -830,6 +830,10 @@ func (a *Operator) syncNamespace(obj interface{}) error {
830
831
// Query OG in this namespace
832
groups, err := a.lister.OperatorsV1().OperatorGroupLister().OperatorGroups(namespace.GetName()).List(labels.Everything())
833
+ if err != nil {
834
+ logger.WithError(err).Warn("failed to list OperatorGroups in the namespace")
835
+ return err
836
+ }
837
838
// Check if there is a stale multiple OG condition and clear it if existed.
839
if len(groups) == 1 {
0 commit comments