Skip to content

Bug: Non-latest version installed in packages with multiple channels #419

Closed
@joelanford

Description

@joelanford

What I did:

  1. Install the operatorhubio Catalog
  2. Create an Operator with just spec.packageName: grafana-operator

What happened:

  • Grafana-operator v3.10.3 was resolved/installed

What I expected to happen:

  • Grafana-operator v5.4.1 should have been resolved/installed

What I think is happening:

  • We are sorting by channel priority and lexicographical name before sorting for version. Therefore bundles present in higher priority channels or in equal priority channels with lexicographically lower names are preferred.

What I think the fix is:

  • Stop using channel for anything other than set membership checks. Specifically, remove these lines (and related code/tests). It is not (yet at least) in the OLMv1 design for there to be channel priorities or for there to be any sorting related to channels. It is thus far meant to be purely a set membership attribute used to filter bundles via spec.channel.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions