Skip to content

Commit d70de07

Browse files
committed
Fix deprecation snapshot pulling from the Subscription Namespace instead of the CatalogSource Namespace.
Signed-off-by: Daniel Franz <[email protected]>
1 parent e2b3768 commit d70de07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/controller/operators/catalog/subscription/reconciler.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ func (c *catalogHealthReconciler) updateDeprecatedStatus(ctx context.Context, su
128128
if c.sourceProvider == nil {
129129
return false, nil
130130
}
131-
132-
source, ok := c.sourceProvider.Sources(sub.Namespace)[cache.SourceKey{
131+
source, ok := c.sourceProvider.Sources(sub.Spec.CatalogSourceNamespace)[cache.SourceKey{
133132
Name: sub.Spec.CatalogSource,
134-
Namespace: sub.Namespace,
133+
Namespace: sub.Spec.CatalogSourceNamespace,
135134
}]
136135
if !ok {
137136
return false, nil

0 commit comments

Comments
 (0)