Skip to content

Commit d70de07

Browse files
committedDec 6, 2023
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

+2-3
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)
Please sign in to comment.