mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user