Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-192

Review update logic for Operator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Critical Critical
    • 0.5.0
    • 0.3.0
    • Operator
    • None
    • Medium
    • 2019 Week 35-37, 2019 Week 38-40 (from Sep 16)

      The CR update logic inside the Reconcile flow might need some adjustments. This PR is opened to:

      1. Check if all input data from CR that a user manually change is being reflected to the resources.
      2. Refactor the update logic to a more "clean" code, since today there's a lot of functions aimed to update the resources. Ideally we just need one that orchestrates all updates, similar to what we have today in the builder package.
      3. If one object is deleted manually by the user, the operator should recreate it and trigger any related action to have the application ready. For example, if the deploymentConfig is deleted, the pods are deleted as well. The operator recreates the dc, but no pods are found any more: Deployer pod "application-name-1-deploy" has gone missing

      For example, if a user changes replicas value in the CR, the deploymentConfig should reflect this change and spin up one more pod.

            xiezhang@redhat.com Xieshen Zhang
            rhn-support-zanini Ricardo Zanini Fernandes
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: