Skip to content

Commit 2ed3959

Browse files
committed
chore(trdl-vault): make request retries configurable via --retry
Signed-off-by: Evgeniy Frolov <evgeniy.frolov@flant.com>
1 parent 1e30cc9 commit 2ed3959

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

release/pkg/vault/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ func (c *TrdlClient) withBackoffRequest(
8282
data map[string]interface{},
8383
action func(taskID string, logger TaskLogger) error,
8484
) error {
85+
if !c.enableRetry {
86+
c.maxAttempts = 0
87+
}
8588
bo := backoff.WithMaxRetries(backoff.NewConstantBackOff(c.delay), uint64(c.maxAttempts))
8689

8790
operation := func() error {

0 commit comments

Comments
 (0)