Skip to content

ggcr: Pass retryBackoff to transport.NewRetry in the remote pkg #1692

@somtochiama

Description

@somtochiama

Describe the feature

Not a bug report but a feature request.

It would be great if the remote.BackOff set in options gets passed now to the created transport in

o.transport = transport.NewRetry(o.transport, transport.WithRetryPredicate(defaultRetryPredicate), transport.WithRetryStatusCodes(o.retryStatusCodes...))
.

This would enable people to configure some parts of the retry operation without providing our own transport.

To Reproduce

Expected behavior

The retry transport is created with the remote.BackOff set in option.

Additional context

Add any other context about the problem here.

  • Version of the module
  • Registry used (e.g., GCR, ECR, Quay)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions