Simplify objGV construction
Co-authored-by: Jordan Liggitt <jordan@liggitt.net> Kubernetes-commit: b9b01a0f901513370cf3e981544a79f57e321d67
This commit is contained in:
parent
e7a594074a
commit
da0758027d
|
@ -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