mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Simplify objGV construction
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
parent
19c72a6cd0
commit
b9b01a0f90
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user