Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-2796

Observability operator should check the Prometheus observedGeneration field before updating status

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW

      The Observability operator should ensure that the Prometheus generation value is equal to the observedGeneration value before updating the MonitoringStack status.

      Example:

      • MonitoringStack object exists with generation=1 and observedGeneration = 1 (same for the underlying Prometheus object).
      • User updates a MonitoringStack object -> MonitoringStack generation = 2, observedGeneration = 1
      • OBO updates the underlying Prometheus object -> Prometheus generation =2, observedGeneration = 1
      • OBO is notified because of the Prometheus change but Prometheus generation != observedGeneration so it does nothing.
      • Prometheus operator reacts on the object change and updates the Prometheus status -> Prometheus generation =2, Prometheus observedGeneration = 2
      • OBO is notified of the Prometheus change since Prometheus generation != observedGeneration -> MonitoringStack generation = 2, observedGeneration = 2

              tremes1@redhat.com Tomas Remes
              nschiede@redhat.com Nico Schieder
              Junqi Zhao Junqi Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: