Skip to content

Commit d0d5832

Browse files
Use default retry client from oras
Signed-off-by: Jagpreet Singh Tamber <[email protected]>
1 parent 36a2799 commit d0d5832

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/oci/notation/notation.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
"github.com/notaryproject/notation-go/verifier/truststore"
3838
oras "oras.land/oras-go/v2/registry/remote"
3939
oauth "oras.land/oras-go/v2/registry/remote/auth"
40+
retryhttp "oras.land/oras-go/v2/registry/remote/retry"
4041

4142
"github.com/fluxcd/source-controller/internal/helm/common"
4243
"github.com/fluxcd/source-controller/internal/oci"
@@ -336,6 +337,7 @@ func (v *NotationVerifier) remoteRepo(repoUrl string) (*oras.Repository, error)
336337
}
337338

338339
repoClient := &oauth.Client{
340+
Client: retryhttp.DefaultClient,
339341
Header: http.Header{
340342
"User-Agent": {"flux"},
341343
},

0 commit comments

Comments
 (0)