mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix: dump admission response (#6349)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
5f9aec162f
commit
695e9b116d
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ func dumpPayload(
|
|||
if err != nil {
|
||||
logger.Error(err, "Failed to extract resources")
|
||||
} else {
|
||||
logger.Info("Logging admission request and response payload ", "AdmissionRequest", reqPayload, "AdmissionResponse", response)
|
||||
if response != nil {
|
||||
logger = logger.WithValues("AdmissionResponse", *response)
|
||||
}
|
||||
logger.Info("Logging admission request and response payload ", "AdmissionRequest", reqPayload)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue