Skip to content

Commit

Permalink
fix(subscription): don't adopt subscriptions that have installplan re…
Browse files Browse the repository at this point in the history
…fences
  • Loading branch information
ecordell committed Jan 24, 2019
1 parent 3af3a51 commit c4f732b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/operators/catalog/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ func (o *Operator) ensureSubscriptionInstallPlanState(logger *logrus.Entry, sub
for _, ip := range ips {
for _, step := range ip.Status.Plan {
// TODO: is this enough? should we check equality of pkg/channel?
if step != nil && step.Resource.Kind == v1alpha1.SubscriptionKind && step.Resource.Name == sub.GetName() {
if step != nil && step.Resource.Kind == v1alpha1.SubscriptionKind && step.Resource.Name == sub.GetName() && sub.Status.Install == nil {
logger.WithField("installplan", ip.GetName()).Debug("found subscription in steps of existing installplan")
out.Status.Install = o.referenceForInstallPlan(ip)
out.Status.State = v1alpha1.SubscriptionStateUpgradePending
Expand Down

0 comments on commit c4f732b

Please sign in to comment.