Modify Event struct to allow compressing multiple recurring events in to a single event.

# *** ERROR: *** Some API files are missing the required field descriptions
# Add description tags to all non-inline fields in the following files:
#   pkg/api/v1beta1/types.go
#   pkg/api/v1beta2/types.go
#
# Your commit will be aborted unless you fix these.
#   COMMIT_BLOCKED_ON_DESCRIPTION
This commit is contained in:
saadali
2015-02-05 18:21:01 -08:00
parent ff4c23d803
commit 79cbcf918e
16 changed files with 148 additions and 44 deletions

View File

@@ -301,7 +301,7 @@ func describeEvents(el *api.EventList, w io.Writer) {
fmt.Fprint(w, "Events:\nTime\tFrom\tSubobjectPath\tReason\tMessage\n")
for _, e := range el.Items {
fmt.Fprintf(w, "%s\t%v\t%v\t%v\t%v\n",
e.Timestamp.Time.Format(time.RFC1123Z),
e.FirstTimestamp.Time.Format(time.RFC1123Z),
e.Source,
e.InvolvedObject.FieldPath,
e.Reason,