Uploaded image for project: 'Operator Runtime'
  1. Operator Runtime
  2. OPRUN-3065

[upstream] Respect .spec.upgradeConstraintPolicy

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • None
    • Joe Lanford 244

      Please read RFC for better formatting and full scope. The excerpt below is just to indicate the scope covered by this specific issue.

      Need to update code to respect .spec.upgradeConstraintPolicy accordingly to the RFC:

      When .spec.upgradeConstraintPolicy is set to Ignore we do not apply upgrade constraints. This means an Operator can be transitioned to any available version of the package (even one older than the currently installed one). Note that, if set, other constraints on Operator still apply (e.g. .spec.version and .spec.channel).

      When .spec.upgradeConstraintPolicy is set to Enforce we use either semver or legacy semantics depending on the position of the ForceSemverUpgradeConstraints feature gate.

       

      Acceptance criteria:

      • It is possible to enforce semver or legacy semantics based on a feature gate
      • It is possible to ignore upgrade constraints (and e.g. downgrade an operator)
      • Tests are provided for both Ignore and Enforce

              mradchuk@redhat.com Mikalai Radchuk (Inactive)
              agreene1991 Alexander Greene (Inactive)
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: