Skip to content

Commit

Permalink
when POST fails, buils-service starts another reconcile, but PaC (#369)
Browse files Browse the repository at this point in the history
actually triggers new build, resulting in endless pipelines

temporary workaround for KFLUXBUGS-1858

Signed-off-by: Robert Cerven <[email protected]>
  • Loading branch information
rcerven authored Nov 12, 2024
1 parent d35ef8d commit d35c4dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/component_build_controller_pac.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d35c4dc

Please sign in to comment.