Skip to content

Commit

Permalink
Merge pull request #675 from ankitathomas/OCPBUGS-27314
Browse files Browse the repository at this point in the history
[release-4.14] OCPBUGS-27314: Don't sync namespaces that have no subscriptions
  • Loading branch information
openshift-merge-bot[bot] authored Feb 7, 2024
2 parents b831504 + 1a1264f commit 1a03f4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,12 @@ func (o *Operator) syncResolvingNamespace(obj interface{}) error {
return err
}

// If there are no subscriptions, don't attempt to sync the namespace.
if len(subs) == 0 {
logger.Debug(fmt.Sprintf("No subscriptions were found in namespace %v", namespace))
return nil
}

ogLister := o.lister.OperatorsV1().OperatorGroupLister().OperatorGroups(namespace)
failForwardEnabled, err := resolver.IsFailForwardEnabled(ogLister)
if err != nil {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a03f4b

Please sign in to comment.