mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Simplify objGV construction
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
parent
b9b01a0f90
commit
58d7bf67d4
@ -141,7 +141,7 @@ func createHandler(r rest.NamedCreater, scope *RequestScope, admit admission.Int
|
||||
|
||||
ae := request.AuditEventFrom(ctx)
|
||||
admit = admission.WithAudit(admit, ae)
|
||||
objGV := schema.GroupVersion{Group: gvk.Group, Version: gvk.Version}
|
||||
objGV := gvk.GroupVersion()
|
||||
audit.LogRequestObject(ae, obj, objGV, scope.Resource, scope.Subresource, scope.Serializer)
|
||||
|
||||
userInfo, _ := request.UserFrom(ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user