1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

added deletion and cpolv details

This commit is contained in:
Jim Bugwadia 2020-02-07 12:41:13 -08:00 committed by GitHub
parent 20e518a608
commit 2faf68f1ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,9 @@ Policy Violations are created to:
1. Report resources that do not comply with validation rules with `validationFailureAction` set to `audit`.
2. Report existing resources (i.e. resources created before the policy was created) that do not comply with validation or mutation rules.
Policy Violation objects are created in the resource namespace. You can view all existing policy violations as shown below:
Policy Violation objects are created in the resource namespace. Policy Violation resources are automatically removed when the resource is updated to comply with the policy rule, or when the policy rule is deleted.
You can view all existing policy violations as shown below:
````
λ kubectl get polv --all-namespaces
@ -21,4 +23,6 @@ docker validation-example2-dgj9j validation-example2 Deployment com
docker validation-example2-gzfdf validation-example2 Deployment compose-api 5m27s
````
# Cluster Policy Violations
Cluster Policy Violations are like Policy Violations but created for cluster-wide resources.