Add two elements Message and Devops into Event struct.
Pass the event object instead of RequestInfo by request context to request handler.
This commit is contained in:
20
pkg/apiserver/auditing/v1alpha1/event.go
Normal file
20
pkg/apiserver/auditing/v1alpha1/event.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package v1alpha1
|
||||
|
||||
import "k8s.io/apiserver/pkg/apis/audit"
|
||||
|
||||
type Event struct {
|
||||
// Devops project
|
||||
Devops string
|
||||
// The workspace which this audit event happened
|
||||
Workspace string
|
||||
// The cluster which this audit event happened
|
||||
Cluster string
|
||||
// Message send to user.s
|
||||
Message string
|
||||
|
||||
audit.Event
|
||||
}
|
||||
|
||||
type EventList struct {
|
||||
Items []Event
|
||||
}
|
||||
Reference in New Issue
Block a user