Skip to content

Commit cbb07ad

Browse files
authored
Merge pull request #62 from jerr/log-cmd-for-completed-job
fix: Accept completed job for log command
2 parents 7e2aab1 + d02beab commit cbb07ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/logs/logs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (l *Logs) Run(jobID types.UID, namespace string, follow bool, timestamps bo
4747
}
4848

4949
pod := &pl.Items[0]
50-
if pod.Status.Phase == corev1.PodSucceeded || pod.Status.Phase == corev1.PodFailed {
50+
if pod.Status.Phase == corev1.PodFailed {
5151
return fmt.Errorf(podPhaseNotAcceptedError, pod.Status.Phase)
5252
}
5353

0 commit comments

Comments
 (0)