Skip to content

Commit

Permalink
fix: pod readiness status format
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Oct 9, 2019
1 parent 868ba48 commit 0e37df7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/controller/component/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ func (res pod) IsReady(underlying runtime.Object) (bool, string) {
return true, ""
}
}
return false, fmt.Sprintf("Pod %s is not ready: %s", p.Name, p.Status.Message)
msg := ""
if len(p.Status.Message) > 0 {
msg = ": " + p.Status.Message
}
return false, fmt.Sprintf("Pod %s is not ready%s", p.Name, msg)
}

func (res pod) ShouldBeCheckedForReadiness() bool {
Expand Down

0 comments on commit 0e37df7

Please sign in to comment.