Rename Event.Status to Event.Condition to match v1beta3 agreement

Question - should this be a phase?  Seems like no, since phase implies
defined lifecycle and this field is explicitly not defined.
This commit is contained in:
Clayton Coleman
2014-12-12 16:27:25 -05:00
parent 61e8baeef9
commit 88715cc6ef
14 changed files with 133 additions and 60 deletions

View File

@@ -62,7 +62,8 @@ func TestEventCreate(t *testing.T) {
}
timeStamp := util.Now()
event := &api.Event{
Status: "running",
//namespace: namespace{"default"},
Condition: "Running",
InvolvedObject: *objReference,
Timestamp: timeStamp,
}
@@ -97,7 +98,7 @@ func TestEventGet(t *testing.T) {
}
timeStamp := util.Now()
event := &api.Event{
Status: "running",
Condition: "Running",
InvolvedObject: *objReference,
Timestamp: timeStamp,
}
@@ -135,7 +136,7 @@ func TestEventList(t *testing.T) {
eventList := &api.EventList{
Items: []api.Event{
{
Status: "running",
Condition: "Running",
InvolvedObject: *objReference,
Timestamp: timeStamp,
},