Skip to content

Commit

Permalink
Use default retry client from oras
Browse files Browse the repository at this point in the history
Signed-off-by: Jagpreet Singh Tamber <[email protected]>
  • Loading branch information
jagpreetstamber committed Mar 14, 2024
1 parent 36a2799 commit d0d5832
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/oci/notation/notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
"github.com/notaryproject/notation-go/verifier/truststore"
oras "oras.land/oras-go/v2/registry/remote"
oauth "oras.land/oras-go/v2/registry/remote/auth"
retryhttp "oras.land/oras-go/v2/registry/remote/retry"

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

repoClient := &oauth.Client{
Client: retryhttp.DefaultClient,
Header: http.Header{
"User-Agent": {"flux"},
},
Expand Down

0 comments on commit d0d5832

Please sign in to comment.