From d28b51f89fe476f80f7fa44b32aa4d1b0063167d Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 14 Jan 2015 14:00:01 -0800 Subject: [PATCH] Document fields, fix presubmit --- pkg/api/v1beta1/types.go | 2 +- pkg/api/v1beta2/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/v1beta1/types.go b/pkg/api/v1beta1/types.go index 77e19b6b9b5..f1321cb8a4f 100644 --- a/pkg/api/v1beta1/types.go +++ b/pkg/api/v1beta1/types.go @@ -825,7 +825,7 @@ type Event struct { // TODO: provide exact specification for format. Source string `json:"source,omitempty" description:"component reporting this event; short machine understandable string"` // Host name on which the event is generated. - Host string `json:"host,omitempty"` + Host string `json:"host,omitempty" description:"host name on which this event was generated"` // The time at which the client recorded the event. (Time of server receipt is in TypeMeta.) Timestamp util.Time `json:"timestamp,omitempty" description:"time at which the client recorded the event"` diff --git a/pkg/api/v1beta2/types.go b/pkg/api/v1beta2/types.go index e8c26dab202..dd7131f1283 100644 --- a/pkg/api/v1beta2/types.go +++ b/pkg/api/v1beta2/types.go @@ -799,7 +799,7 @@ type Event struct { Source string `json:"source,omitempty" description:"component reporting this event; short machine understandable string"` // Host name on which the event is generated. - Host string `json:"host,omitempty"` + Host string `json:"host,omitempty" description:"host name on which this event was generated"` // The time at which the client recorded the event. (Time of server receipt is in TypeMeta.) Timestamp util.Time `json:"timestamp,omitempty" description:"time at which the client recorded the event"`