-
Bug
-
Resolution: Done
-
Major
-
None
-
2.12.0 CR1
-
None
-
False
-
None
-
False
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
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'}]"