mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Issue 105353: Add messages+details to audit logs response (#105415)
This commit is contained in:
parent
2fcdbd098c
commit
016b96ca38
@ -196,9 +196,11 @@ func LogResponseObject(ctx context.Context, obj runtime.Object, gv schema.GroupV
|
|||||||
if status, ok := obj.(*metav1.Status); ok {
|
if status, ok := obj.(*metav1.Status); ok {
|
||||||
// selectively copy the bounded fields.
|
// selectively copy the bounded fields.
|
||||||
ae.ResponseStatus = &metav1.Status{
|
ae.ResponseStatus = &metav1.Status{
|
||||||
Status: status.Status,
|
Status: status.Status,
|
||||||
Reason: status.Reason,
|
Message: status.Message,
|
||||||
Code: status.Code,
|
Reason: status.Reason,
|
||||||
|
Details: status.Details,
|
||||||
|
Code: status.Code,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user