From 18b3ee7a5df085bfc0cf99bf32d588a5f8989528 Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Sat, 11 Nov 2023 21:34:17 +0100 Subject: [PATCH] Remove usage of deprecated Tekton field --- test/stubs/tekton.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/stubs/tekton.go b/test/stubs/tekton.go index 4293f96d..e9e43e54 100644 --- a/test/stubs/tekton.go +++ b/test/stubs/tekton.go @@ -85,7 +85,9 @@ func TektonPipelineRunRunning(name string) tknv1beta1.PipelineRun { func TektonPipelineRunTimedOut(name string) tknv1beta1.PipelineRun { pipelineRun := TektonPipelineRun(name) - pipelineRun.Spec.Timeout = &metav1.Duration{Duration: time.Second} + pipelineRun.Spec.Timeouts = &tknv1beta1.TimeoutFields{ + Pipeline: &metav1.Duration{Duration: time.Second}, + } pipelineRun.Status.PipelineRunStatusFields = tknv1beta1.PipelineRunStatusFields{ StartTime: &metav1.Time{ Time: time.Date(1982, time.January, 1, 0, 0, 0, 0, time.Local),