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

Template upgrade guide 2.11 -> 2.12 contains incompatible commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.12.0 CR1
    • Documentation
    • None
    • API CCS Sprint 25, API CCS Sprint 26 (3Scale), API CCS Sprint 27 (3Scale)

      In template upgrade documentation there is multiple times --jsonpath option used together with jq. For oc tools v3.11 --jsonpath option does not output json hence jq fails. This can be fixed by moving jsonpath filtering to jq like this.
      e.g. from this

      INDEX=$(oc get dc system-app -o jsonpath='{.spec.strategy.rollingParams.pre.execNewPod.env}' | jq '. | map(.name == "AMP_RELEASE") | index(true)')
      oc patch dc/system-app --type=json -p "[{'op': 'remove', 'path': '/spec/strategy/rollingParams/pre/execNewPod/env/$INDEX'}]"  

      to this

      INDEX=$(oc get dc system-app -o json | jq '.spec.strategy.rollingParams.pre.execNewPod.env | map(.name == "AMP_RELEASE") | index(true)')
      oc patch dc/system-app --type=json -p "[{'op': 'remove', 'path': '/spec/strategy/rollingParams/pre/execNewPod/env/$INDEX'}]" 

              Unassigned Unassigned
              ficap_devel Filip Čáp (Inactive)
              Darren Fennessy Darren Fennessy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: