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