Skip to content

Commit d340772

Browse files
committed
fix(pod): log pod error status and message instead of pod struct
1 parent d300b23 commit d340772

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/k8s_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func waitForPod(pw *k8s.PodWatcher, ns, podName string, ticker, interval, timeou
191191
return true, nil
192192
}
193193
if pod.Status.Phase == api.PodFailed {
194-
return true, fmt.Errorf("Giving up; pod went into failed status: \n%s", fmt.Sprintf("%#v", pod))
194+
return true, fmt.Errorf("Giving up; pod went into failed status: \n[%s]:%s", pod.Status.Reason, pod.Status.Message)
195195
}
196196
return false, nil
197197
}

0 commit comments

Comments
 (0)