audit: fill in sub-resource
Kubernetes-commit: 019003b9266872f912b188708583141a34561007
This commit is contained in:
parent
f695ec4d4b
commit
8b776edc46
|
|
@ -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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue