Simplify objGV construction

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
Kasakaze 2021-06-02 10:52:35 +08:00 committed by GitHub
parent 0ae6a7bac6
commit 19c72a6cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {