Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-6128

Improve code for adding finalizer

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • OSSM 3.0-TP1
    • None
    • Project Sail
    • None

      The operator doesn't handle conflicts when adding the finalizer. Also, it adds the finalizer and continues to reconcile the object. This can lead to 409 conflicts down the line that could otherwise be avoided.

      The operator should add the finalizer, stop reconciling, and then continue when it receives the watch event generated by the update in which the finalizer was added. This avoids conflicts when the operator updates the object during the reconciliation.

            mluksa@redhat.com Marko Luksa
            mluksa@redhat.com Marko Luksa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: