Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-6959

[ACM 2.7] Use operatorconditions to communicate upgrade eligibility of MCE

XMLWordPrintable

    • 5
    • False
    • None
    • False
    • Hide
       * Operator prevents OLM upgrade while operand upgrade is in progress
       * Operator sets default conditions before the pod’s ready probe is set to true
      * Once operand upgrade is complete, hold is released so OLM can upgrade operator again
      * Operator checks that currentVersion == operator version before giving green light for upgrade
      Show
       * Operator prevents OLM upgrade while operand upgrade is in progress  * Operator sets default conditions before the pod’s ready probe is set to true * Once operand upgrade is complete, hold is released so OLM can upgrade operator again * Operator checks that currentVersion == operator version before giving green light for upgrade
    • Installer Sprint 23-17
    • No

      Value Statement

      OLM introduced a new CustomResourceDefinition called the OperatorCondition allowing operators to communicate conditions to OLM. The Upgradeable “OLM Supported Condition” prevents the existing CSV from being replaced by a newer version of the CSV. When the Upgradeable condition is set to False, OLM will prevent a channel entry in a subscribed package that replaces the operator’s existing CSV from leaving the PendingPhase.

      We should leverage the OperatorCondition to prevent OLM from upgrading to a new operator version before the operand (MCE/MCH) has caught up to the desired version.

      Definition of Done for Engineering Story Owner (Checklist)

      • [x] Operator prevents OLM upgrade while operand upgrade is in progress
      • [x] Operator sets default conditions before the pod’s ready probe is set to true
      • [x] Once operand upgrade is complete, hold is released so OLM can upgrade operator again
      • [x] Operator checks that currentVersion == operator version before giving green light for upgrade

      Development Complete

      • The code is complete.
      • Functionality is working.
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [x] Unit/function tests have been automated and incorporated into the
        build.
      • [x] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [ ] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      Support Readiness

      • [ ] The must-gather script has been updated.

          There are no Sub-Tasks for this issue.

              cwall@redhat.com Cameron Wall
              jagray@redhat.com Jakob Gray
              Ting Xue Ting Xue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: