In Kyverno version 1.12, I don't see any msg or note fields in Kyverno logs that need to be displayed when using the validate rule type. But in version 1.11 it is fully available.
Error from server: error when creating "STDIN": admission webhook "validate.kyverno.svc-fail" denied the request:
resource Pod/default/taile-test-kyverno-pod was blocked due to the following policies
slsa-verify-all-images:
slsa-restrict-third-party-images: 'validation failure: Your third-party images have
not been whitelisted ["python:alpine3.19"]'
Below are the types of logs I get for each version
Version 1.11 - This log has the note field describing the error message
Use kubectl to capture logs kubectl logs -f -l app.kubernetes.io/part-of=kyverno -n kyverno | grep "taile-test-kyverno-pod" (taile-test-kyverno-pod is my pod name) .
Apply Manifest of my pod .
Check logs get from step 3 .
Expected behavior
I would like the log information to be fully described as in v1.11, which I showed above.
Kyverno Version
1.12
Kubernetes Version
1.24
Kubernetes Platform
GKE
Description
In Kyverno version 1.12, I don't see any msg or note fields in Kyverno logs that need to be displayed when using the validate rule type. But in version 1.11 it is fully available.
My policy
Manifest of my pod applied
The error message I get from the console screen
Below are the types of logs I get for each version
Version 1.11 - This log has the
note
field describing the error messageVersion 1.12 - I get 4 logs but no field describing the error message: Your third-party images have not been whitelisted ...
Steps to reproduce
My policy
in above description .kubectl logs -f -l app.kubernetes.io/part-of=kyverno -n kyverno | grep "taile-test-kyverno-pod"
(taile-test-kyverno-pod is my pod name) .Manifest of my pod
.Expected behavior
I would like the log information to be fully described as in v1.11, which I showed above.
Screenshots
No response
Kyverno logs
No response
Slack discussion
No response
Troubleshooting