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

@@ -205,10 +205,10 @@ func describeEvents(el *api.EventList, w io.Writer) {
return
}
sort.Sort(sortableEvents(el.Items))
fmt.Fprint(w, "Events:\nFrom\tSubobjectPath\tStatus\tReason\tMessage\n")
fmt.Fprint(w, "Events:\nFrom\tSubobjectPath\tCondition\tReason\tMessage\n")
for _, e := range el.Items {
fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\n",
e.Source, e.InvolvedObject.FieldPath, e.Status, e.Reason, e.Message)
e.Source, e.InvolvedObject.FieldPath, e.Condition, e.Reason, e.Message)
}
}