Skip to content

Commit

Permalink
Fix deprecation snapshot pulling from the Subscription Namespace inst…
Browse files Browse the repository at this point in the history
…ead of the CatalogSource Namespace.

Signed-off-by: Daniel Franz <[email protected]>
Upstream-repository: operator-lifecycle-manager
Upstream-commit: d70de0797c1604cb2b6d6aa043e1e7731fc830e3
  • Loading branch information
dtfranz authored and ci-robot committed Dec 7, 2023
1 parent 42dee83 commit e603530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

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

0 comments on commit e603530

Please sign in to comment.