Open anushkamittal2001 opened 2 months ago
The value of the RESULT column in the test output is always Pass
when the tested outcome matches the outcome stated in the test manifest's results[].result
field. If this field is populated with skip
and the actual outcome of the test is a skip
then the RESULT column is still expected to say Pass
. I'm in favor of introducing a new results[].result
value called excluded
so that these test results align with Policy Report results. In a Policy Report, a resource which is not matched as a result of the combined match
and/or exclude
blocks does not receive a result called skip
; there is no Policy Report written at all. The CLI should align with this so as not to create confusion for users.
~And not that it's probably relevant, but I've no idea what this options.gracePeriodSeconds
field is you're coming up with in your Pod definition.~ This is actually a valid field populated in the AdmissionReview when a DELETE request is sent with flags.
Kyverno CLI Version
1.12.0
Description
Recently we added this PR https://github.com/kyverno/kyverno/pull/9274/files, to deal with
Now for excluded resources we get send pass result, it should actually be skip as stated here: https://kyverno.io/docs/kyverno-cli/usage/test/#:~:text=The%20resource%20does%20not%20meet%20either%20the%20match%20or%20exclude%20block%2C%20or%20does%20not%20pass%20the%20preconditions%20statements.
Steps to reproduce
on running test command:
Expected behavior
The result should show
Skip
because resource excludedScreenshots
No response
Kyverno logs
No response
Slack discussion
No response
Troubleshooting