mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
|
||
---|---|---|
.. | ||
chainsaw-test.yaml | ||
exception.yaml | ||
pod.yaml | ||
policy-assert.yaml | ||
policy.yaml | ||
README.md | ||
report-assert.yaml |
Description
This test creates a policy, a policy exception and a pod. It makes sure the generated background scan report contains a skipped result instead of a failed one.
Steps
-
- Create a pod named
nginx
- Create a pod named
-
- Create a cluster policy
- Assert the policy becomes ready
-
- Create a policy exception for the cluster policy created above, configured to apply to pod named
nginx
- Create a policy exception for the cluster policy created above, configured to apply to pod named
-
- Assert that a policy report exists with a skipped result