From d042b87e194bbead30a38f333eedbb21a42224b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Tue, 7 Jan 2025 10:47:51 +0100 Subject: [PATCH] revert: retry creation of pipelinerun --- pkg/engines/tekton/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/engines/tekton/controller.go b/pkg/engines/tekton/controller.go index 539d2c75f..97c5b7b6d 100644 --- a/pkg/engines/tekton/controller.go +++ b/pkg/engines/tekton/controller.go @@ -108,8 +108,7 @@ func (r *LighthouseJobReconciler) Reconcile(ctx context.Context, req ctrl.Reques // if pipeline run does not exist, create it if len(pipelineRunList.Items) == 0 { - if job.Status.State == lighthousev1alpha1.TriggeredState || - job.Status.State == lighthousev1alpha1.PendingState { + if job.Status.State == lighthousev1alpha1.TriggeredState { // construct a pipeline run pipelineRun, err := makePipelineRun(ctx, job, r.namespace, r.logger, r.idGenerator, r.apiReader) if err != nil { @@ -130,6 +129,7 @@ func (r *LighthouseJobReconciler) Reconcile(ctx context.Context, req ctrl.Reques } } + // TODO: changing the status should be a consequence of a pipeline run being created // update status status := lighthousev1alpha1.LighthouseJobStatus{ State: lighthousev1alpha1.PendingState,