Skip to content

Commit e603530

Browse files
dtfranzci-robot
authored andcommitted
Fix deprecation snapshot pulling from the Subscription Namespace instead of the CatalogSource Namespace.
Signed-off-by: Daniel Franz <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: d70de0797c1604cb2b6d6aa043e1e7731fc830e3
1 parent 42dee83 commit e603530

File tree

2 files changed

+4
-6
lines changed
  • staging/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription
  • vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription

2 files changed

+4
-6
lines changed

staging/operator-lifecycle-manager/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

vendor/github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription/reconciler.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)