audit: fill in sub-resource

This commit is contained in:
Dr. Stefan Schimanski 2017-05-24 10:16:55 +02:00
parent 3e9c8aaac6
commit 019003b926

View File

@ -97,6 +97,7 @@ func NewEventFromRequest(req *http.Request, level auditinternal.Level, attribs a
Namespace: attribs.GetNamespace(), Namespace: attribs.GetNamespace(),
Name: attribs.GetName(), Name: attribs.GetName(),
Resource: attribs.GetResource(), Resource: attribs.GetResource(),
Subresource: attribs.GetSubresource(),
APIVersion: attribs.GetAPIGroup() + "/" + attribs.GetAPIVersion(), APIVersion: attribs.GetAPIGroup() + "/" + attribs.GetAPIVersion(),
} }
} }