mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix info kind error (#5701)
Signed-off-by: cleverhu <shouping.hu@daocloud.io> Signed-off-by: cleverhu <shouping.hu@daocloud.io>
This commit is contained in:
parent
66ba0fc5ec
commit
8fd841a912
2 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,8 @@ func (inner AdmissionHandler) withAdmission(logger logr.Logger) HttpHandler {
|
|||
return
|
||||
}
|
||||
logger := logger.WithValues(
|
||||
"kind", admissionReview.Request.Kind,
|
||||
"kind", admissionReview.Request.Kind.Kind,
|
||||
"gvk", admissionReview.Request.Kind,
|
||||
"namespace", admissionReview.Request.Namespace,
|
||||
"name", admissionReview.Request.Name,
|
||||
"operation", admissionReview.Request.Operation,
|
||||
|
|
|
@ -82,7 +82,7 @@ func (v *validationHandler) HandleValidation(
|
|||
}
|
||||
|
||||
resourceName := admissionutils.GetResourceName(request)
|
||||
logger := v.log.WithValues("action", "validate", "resource", resourceName, "operation", request.Operation, "gvk", request.Kind.String())
|
||||
logger := v.log.WithValues("action", "validate", "resource", resourceName, "operation", request.Operation, "gvk", request.Kind)
|
||||
|
||||
var deletionTimeStamp *metav1.Time
|
||||
if reflect.DeepEqual(policyContext.NewResource, unstructured.Unstructured{}) {
|
||||
|
|
Loading…
Add table
Reference in a new issue