Skip to content

Commit

Permalink
accept completed job
Browse files Browse the repository at this point in the history
  • Loading branch information
jerr committed Feb 27, 2019
1 parent 7e2aab1 commit d02beab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (l *Logs) Run(jobID types.UID, namespace string, follow bool, timestamps bo
}

pod := &pl.Items[0]
if pod.Status.Phase == corev1.PodSucceeded || pod.Status.Phase == corev1.PodFailed {
if pod.Status.Phase == corev1.PodFailed {
return fmt.Errorf(podPhaseNotAcceptedError, pod.Status.Phase)
}

Expand Down

0 comments on commit d02beab

Please sign in to comment.