From d02beaba4e9bd33a930ab371a1128ce1b810fc55 Mon Sep 17 00:00:00 2001 From: Jeremie Lagarde Date: Wed, 27 Feb 2019 17:35:00 -0500 Subject: [PATCH] accept completed job --- pkg/logs/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/logs/logs.go b/pkg/logs/logs.go index f2996e04..94406c0f 100644 --- a/pkg/logs/logs.go +++ b/pkg/logs/logs.go @@ -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) }