What did you do?
operator-sdk cli command in the documentation).What did you expect to see?
I expected the default test would pass.
What did you see instead? Under which circumstances?
I received the error:
TASK [Wait 60s for reconciliation to run] **************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check ''Successful' in (cr | json_query('resources[].status.conditions[].reason'))' failed. The error was: You need to install \"jmespath\" prior to running json_query filter"}
Environment
$ operator-sdk version
operator-sdk version: v0.10.0, commit: ff80b17737a6a0aade663e4827e8af3ab5a21170
N/A
N/A
N/A
Possible Solution
The default .travis.yml file included with the Ansible operator scaffold should include jmespath in its dependency installation, e.g.:
install:
- pip install docker molecule openshift jmespath
Currently it does not include jmespath.
Additional context
N/A
/assign @camilamacedo86
Hi @geerlingguy,
Thank you for raise it. We will be looking at that. Did you try your solution? Did it work?
Anyway, I will be checking it as soon as possible.
@camilamacedo86 - Just pushed up a PR to fix: https://github.com/operator-framework/operator-sdk/pull/2027
I can confirm that adding that dependency fixes the issue, as seen in the difference between the #2 and #3 builds in Travis CI here: https://travis-ci.com/geerlingguy/mariadb-operator/builds
it is great @geerlingguy !! Really tks for your contribution.
Also, wyt about doing a PR to fix the sample here as well?
@camilamacedo86 - sure, will do!