diff --git a/staging/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go b/staging/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go index 982e6164d9..374e49fb77 100644 --- a/staging/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go +++ b/staging/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go @@ -128,10 +128,9 @@ func (c *catalogHealthReconciler) updateDeprecatedStatus(ctx context.Context, su if c.sourceProvider == nil { return false, nil } - - source, ok := c.sourceProvider.Sources(sub.Namespace)[cache.SourceKey{ + source, ok := c.sourceProvider.Sources(sub.Spec.CatalogSourceNamespace)[cache.SourceKey{ Name: sub.Spec.CatalogSource, - Namespace: sub.Namespace, + Namespace: sub.Spec.CatalogSourceNamespace, }] if !ok { return false, nil diff --git a/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go b/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go index 982e6164d9..374e49fb77 100644 --- a/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go +++ b/vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go @@ -128,10 +128,9 @@ func (c *catalogHealthReconciler) updateDeprecatedStatus(ctx context.Context, su if c.sourceProvider == nil { return false, nil } - - source, ok := c.sourceProvider.Sources(sub.Namespace)[cache.SourceKey{ + source, ok := c.sourceProvider.Sources(sub.Spec.CatalogSourceNamespace)[cache.SourceKey{ Name: sub.Spec.CatalogSource, - Namespace: sub.Namespace, + Namespace: sub.Spec.CatalogSourceNamespace, }] if !ok { return false, nil