[Bug] kyverno-json documentation seems incorrect re: wildcards and validate
property
#342
Open
1 task done
Labels
bug
Something isn't working
good first issue
Good for newcomers
triage
Default label assigned to all new issues indicating label curation is needed to fully organize.
Kyverno JSON Version
0.1.0
Description
I am on version
0.0.2
, which I can't select in the bug issue form version selector (I installed via Homebrew, and the only version available there is 0.0.2)The kyverno-json documentation includes an example ValidatingPolicy that uses
validate
with a wildcard?*
:However, this doesn't work. In the Kyverno playground an attempt to use this policy just returns
{"results": null}
. On the command line there is an error thrown:$ kyverno-json scan --payload my_payload.yaml --policy required_s3_tags.yaml Loading policies ... Error: failed to parse document (spec.rules[0].validate: Invalid value: value provided for unknown field)
Steps to reproduce
kyverno-json
using that policy:This throws an error:
$ kyverno-json scan --policy test_policy.yaml Loading policies ... Error: failed to parse document (spec.rules[0].validate: Invalid value: value provided for unknown field)
Expected behavior
I had expected that the examples provided in the documentation would work.
Screenshots
No response
Logs
No response
Slack discussion
No response
Troubleshooting
The text was updated successfully, but these errors were encountered: