From d35c4dc1cf8dc1d323b4d4dac94eccef10c274d7 Mon Sep 17 00:00:00 2001 From: rcerven Date: Tue, 12 Nov 2024 17:12:57 +0100 Subject: [PATCH] when POST fails, buils-service starts another reconcile, but PaC (#369) actually triggers new build, resulting in endless pipelines temporary workaround for KFLUXBUGS-1858 Signed-off-by: Robert Cerven --- controllers/component_build_controller_pac.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/component_build_controller_pac.go b/controllers/component_build_controller_pac.go index fd70cd33..295f572c 100644 --- a/controllers/component_build_controller_pac.go +++ b/controllers/component_build_controller_pac.go @@ -299,7 +299,8 @@ func (r *ComponentBuildReconciler) TriggerPaCBuild(ctx context.Context, componen resp, err := HttpClient.Post(triggerURL, "application/json", bytes.NewBuffer(bytesParam)) if err != nil { - return false, err + log.Error(err, "error from incoming webhook trigger POST") + return false, nil } if resp.StatusCode != 200 && resp.StatusCode != 202 {