mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #7700 from wojtek-t/better_loging_for_failures
Log host for failed pod in Density test
This commit is contained in:
commit
c1d1f95c21
@ -593,7 +593,7 @@ func VerifyContainersAreNotFailed(pod api.Pod) error {
|
||||
} else {
|
||||
for _, status := range statuses {
|
||||
if status.State.Termination != nil || status.LastTerminationState.Termination != nil || status.RestartCount != 0 {
|
||||
errStrings = append(errStrings, fmt.Sprintf("Error: Pod %s: Container %s was found to have terminated %d times", pod.Name, status.Name, status.RestartCount))
|
||||
errStrings = append(errStrings, fmt.Sprintf("Error: Pod %s (host: %s) : Container %s was found to have terminated %d times", pod.Name, pod.Spec.Host, status.Name, status.RestartCount))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user