From bab4c84eac9e1120111315178014c29bae7ca331 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Tue, 18 Dec 2018 14:46:09 -0500 Subject: [PATCH] fix(sub): set subscription to failed if there's no catalogsource --- pkg/controller/operators/catalog/subscriptions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/operators/catalog/subscriptions.go b/pkg/controller/operators/catalog/subscriptions.go index 246b402fa0..540d91e468 100644 --- a/pkg/controller/operators/catalog/subscriptions.go +++ b/pkg/controller/operators/catalog/subscriptions.go @@ -46,7 +46,7 @@ func (o *Operator) syncSubscription(in *v1alpha1.Subscription) (*v1alpha1.Subscr } catalog, ok := o.sources[registry.ResourceKey{Name: out.Spec.CatalogSource, Namespace: catalogNamespace}] if !ok { - out.Status.State = v1alpha1.SubscriptionStateAtLatest + out.Status.State = v1alpha1.SubscriptionStateFailed out.Status.Reason = v1alpha1.SubscriptionReasonInvalidCatalog return out, fmt.Errorf("unknown catalog source %s in namespace %s", out.Spec.CatalogSource, catalogNamespace) }