@@ -40,6 +40,7 @@ type Event struct {
4040 metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
4141
4242 // eventTime is the time when this Event was first observed. It is required.
43+ // +required
4344 EventTime metav1.MicroTime `json:"eventTime" protobuf:"bytes,2,opt,name=eventTime"`
4445
4546 // series is data about the Event series this event represents or nil if it's a singleton Event.
@@ -48,18 +49,22 @@ type Event struct {
4849
4950 // reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
5051 // This field cannot be empty for new Events.
52+ // +required
5153 ReportingController string `json:"reportingController,omitempty" protobuf:"bytes,4,opt,name=reportingController"`
5254
5355 // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
5456 // This field cannot be empty for new Events and it can have at most 128 characters.
57+ // +required
5558 ReportingInstance string `json:"reportingInstance,omitempty" protobuf:"bytes,5,opt,name=reportingInstance"`
5659
5760 // action is what action was taken/failed regarding to the regarding object. It is machine-readable.
5861 // This field cannot be empty for new Events and it can have at most 128 characters.
62+ // +required
5963 Action string `json:"action,omitempty" protobuf:"bytes,6,name=action"`
6064
6165 // reason is why the action was taken. It is human-readable.
6266 // This field cannot be empty for new Events and it can have at most 128 characters.
67+ // +required
6368 Reason string `json:"reason,omitempty" protobuf:"bytes,7,name=reason"`
6469
6570 // regarding contains the object this Event is about. In most cases it's an Object reporting controller
@@ -82,6 +87,7 @@ type Event struct {
8287 // type is the type of this event (Normal, Warning), new types could be added in the future.
8388 // It is machine-readable.
8489 // This field cannot be empty for new Events.
90+ // +required
8591 Type string `json:"type,omitempty" protobuf:"bytes,11,opt,name=type"`
8692
8793 // deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
@@ -104,8 +110,10 @@ type Event struct {
104110// how this struct is updated on heartbeats and can guide customized reporter implementations.
105111type EventSeries struct {
106112 // count is the number of occurrences in this series up to the last heartbeat time.
113+ // +required
107114 Count int32 `json:"count" protobuf:"varint,1,opt,name=count"`
108115 // lastObservedTime is the time when last Event from the series was seen before last heartbeat.
116+ // +required
109117 LastObservedTime metav1.MicroTime `json:"lastObservedTime" protobuf:"bytes,2,opt,name=lastObservedTime"`
110118}
111119
0 commit comments