Open djuarezg opened 6 years ago
This is caused by https://github.com/ansibleplaybookbundle/apb-base/blob/cc949ecfeee2e84bd626c73b4cbc54d496fc6738/files/usr/bin/entrypoint.sh#L48 which does not take into account whether it is one line or a multiblock string.
And on the latest versions it does not even add the extra parameters from the secrets to the playbook run.
Bug:
What happened: If you follow https://github.com/openshift/ansible-service-broker/blob/master/docs/secrets.md and try to add a multiline secret as in:
the Ansible Playbook Bundle will see an error while loading the secrets YAML file, as if it was using newlines to separate secrets:
This happens as well if you use the base64 data secret.
What you expected to happen:
The secret should keep the newlines and be used as a parameter on the APB.
Mounted secrets are copied to
/tmp/secrets
so they can be passed as parameters to the playbook, but instead of producing this expected secrets file:They produce something like this, which will fail during parsing: