From b6a60aa2e88c3de1ab7c8d4ac78d877aaf082e91 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 24 Oct 2024 22:44:37 +0200 Subject: [PATCH] Fix overriding retry settings in PatchPipelineRun We never doubled of the retry when Patching the Pipelinerun as committed here: 16cbdcc91febea81c0b28658876236e3c13c9a35 Do actually use this. Signed-off-by: Chmouel Boudjnah --- pkg/action/patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/action/patch.go b/pkg/action/patch.go index e864bc054..8b715f75d 100644 --- a/pkg/action/patch.go +++ b/pkg/action/patch.go @@ -24,7 +24,7 @@ func PatchPipelineRun(ctx context.Context, logger *zap.SugaredLogger, whatPatchi doubleRetry.Duration *= 2 doubleRetry.Factor *= 2 doubleRetry.Jitter *= 2 - err := retry.RetryOnConflict(retry.DefaultRetry, func() error { + err := retry.RetryOnConflict(doubleRetry, func() error { patch, err := json.Marshal(mergePatch) if err != nil { return err