From 1523239410ce49ec6daea5544af89c21447f721b Mon Sep 17 00:00:00 2001 From: pengli Date: Sat, 8 Feb 2020 21:22:06 +0800 Subject: [PATCH] Correct message of Pipelinerun when timeout --- pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go b/pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go index 64ec83a6cc1..d09618ca9e9 100644 --- a/pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go +++ b/pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go @@ -382,7 +382,7 @@ func GetPipelineConditionStatus(pr *v1alpha1.PipelineRun, state PipelineRunState Type: apis.ConditionSucceeded, Status: corev1.ConditionFalse, Reason: ReasonTimedOut, - Message: fmt.Sprintf("PipelineRun %q failed to finish within %q", pr.Name, pr.Spec.Timeout.String()), + Message: fmt.Sprintf("PipelineRun %q failed to finish within %q", pr.Name, pr.Spec.Timeout.Duration.String()), } }