Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11951

operator reverts payment customatization suggested by documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 2.16.0 GA
    • 3scale Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide

      1. create new entry in a cm/system e.g. 

      payments.yml: |
          production:
            active_merchant_mode: :test
      

      2. update deployemnt/system-app

      oc patch deployment system-app --type=json -p='[{"op":"add", "path":"/spec/template/spec/volumes/0/configMap/items/-", "value":{"key":"payments.yml","path":"payments.yml"}}]' 

      3. expected to get new system-app rollout and in frist few lines active_merchant_mode should be set to test

      4. actual result is that operator reverts deployment/system-app change resulting pod configuring active_merchant_mode be default: "production"

      Show
      1. create new entry in a cm/system e.g.  payments.yml: |     production:       active_merchant_mode: :test 2. update deployemnt/system-app oc patch deployment system-app --type=json -p= '[{ "op" : "add" , "path" : "/spec/template/spec/volumes/0/configMap/items/-" , "value" :{ "key" : "payments.yml" , "path" : "payments.yml" }}]' 3. expected to get new system-app rollout and in frist few lines active_merchant_mode should be set to test 4. actual result is that operator reverts deployment/system-app change resulting pod configuring active_merchant_mode be default: "production"
    • Critical

      Payment configuration was introduced in 2.14 via payments.yml https://github.com/3scale/porta/pull/2773

      documentation also suggest to make new config in a cm/system and update system-* dc or deployment https://docs.redhat.com/en/documentation/red_hat_3scale_api_management/2.15/html/admin_portal_guide/configure-billing#changing_the_currencies_configuration_in_openshift

      In 2.16 builds, new reconciliation in system_reconciler.go revers user edits.

       

      In default QE deployment, we add payments.yml in a cm/system mainly to set
      active_merchant_mode: :test
      and we need to map new configmap entry in a system pods with update:  

      oc patch deployment system-app --type=json -p='[{"op":"add", "path":"/spec/template/spec/volumes/0/configMap/items/-", "value":{"key":"payments.yml","path":"payments.yml"}}]'

      this update is reverted by an operator

              Unassigned Unassigned
              mdujava@redhat.com Matej Dujava
              Daria Mayorova Daria Mayorova
              An Tran An Tran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: