Simplify objGV construction

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

View File

@ -251,7 +251,7 @@ func DeleteCollection(r rest.CollectionDeleter, checkBody bool, scope *RequestSc
}
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)
} else {
if err := metainternalversionscheme.ParameterCodec.DecodeParameters(req.URL.Query(), scope.MetaGroupVersion, options); err != nil {