Simplify objGV construction

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

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

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 {