operator-framework / operator-controller

A new and improved management framework for extending Kubernetes with Operators
https://operator-framework.github.io/operator-controller/
Apache License 2.0
61 stars 53 forks source link

bug: Misleading error message when no successors available #1022

Open joelanford opened 3 months ago

joelanford commented 3 months ago

I have a scenario setup with 6.0.1 installed, where I updated the spec.version to 6.0.0 with upgrade policy enforcement enabled.

I got the following error message:

    message: 'error upgrading from currently installed version "6.0.1": no package
      "cockroachdb" matching version "6.0.0" found'

This makes it sound like:

I expected something along the lines of (where the list of best available successors would be sugar on top):

    message: 'error upgrading from currently installed version "6.0.1": desired package "cockroachdb" with version range "6.0.0" does not match any successor of "6.0.1", which include "6.0.3" (highest-available z-update) and "6.4.0" (highest available y-update)
itroyano commented 2 months ago

/assign

dhoover103 commented 2 months ago

/assign

joelanford commented 2 months ago

@itroyano and @dhoover103, I'm refactoring this area of code in #1033, so you may want to hold off or branch off of that PR.

LalatenduMohanty commented 3 weeks ago

@joelanford mentioned that he has already fixed it, so assigning it to him to cross check.

joelanford commented 3 weeks ago

I cross checked. I don't think I did fix this actually. My mistake!