Open ibuziuk opened 6 years ago
@djzager could you please clarify if this is a regression or now it would be possible to add extra-vars only via json / yaml ?
@ibuziuk maybe related to what you saw https://github.com/ansibleplaybookbundle/apb-base/pull/49
Apologies are two-fold @ibuziuk
--extra-vars
.Hope that helps.
This seems to have broken many APBs that used FROM ansibleplaybookbundle/apb-base
I've pinned the APBs I own to FROM ansibleplaybookbundle/apb-base:release-1.2
to make them work until I change how I pass extra-vars.
e.g. https://github.com/openshift-labs/starter-guides/tree/ocp-3.11/apb
Getting this error too, but fixing the version to release-1.2
did not work
Is this repo still alive? If not, is there an alternative solution to replace APBs?
Originally the issue [1] was found in eclipse-che where tests are executed via the following command using the
canary
version of apb-base :oc run "${APB_NAME}-test" -it --restart='Never' --image "${REGISTRY}/${APB_NAME}/${APB_NAME}" --env "OPENSHIFT_TOKEN=${OC_PASS}" --env "OPENSHIFT_TARGET=https://kubernetes.default.svc" --env "POD_NAME=${APB_NAME}-test" --env "POD_NAMESPACE=${APB_NAME}" --overrides='{"apiVersion":"v1","spec":{"serviceAccountName":"apb"}}' -- test -e namespace=${APB_NAME}
The following command works correctly against
sprint150.1
version of apb-base, but fails with the following error against the most recent version:Basically, it appeared to be that on the recent version of apb-base extra vars must be passed the following way:
-e "{"namespace": "${APB_NAME}"}"
and-e namespace=${APB_NAME}
way of passing extra vars is not supported currently even though the docs are saying the opposite:[1] https://github.com/ansibleplaybookbundle/eclipse-che-apb/issues/23