mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
Simplify objGV construction
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
parent
0ae6a7bac6
commit
19c72a6cd0
@ -104,7 +104,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope *RequestSc
|
||||
trace.Step("Decoded delete options")
|
||||
|
||||
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)
|
||||
trace.Step("Recorded the audit event")
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user