Simplify objGV construction

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>

Kubernetes-commit: 19c72a6cd05da805b1bec9fe567614ef82bf7beb
This commit is contained in:
Kasakaze 2021-06-02 10:52:35 +08:00 committed by Kubernetes Publisher
parent 1b73b18c80
commit e7a594074a
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope *RequestSc
trace.Step("Decoded delete options")
ae := request.AuditEventFrom(ctx)
objGV := schema.GroupVersion{Group: gvk.Group, Version: gvk.Version}
objGV := gvk.GroupVersion()
audit.LogRequestObject(ae, obj, objGV, scope.Resource, scope.Subresource, scope.Serializer)
trace.Step("Recorded the audit event")
} else {