Skip to content

Commit

Permalink
feat: enable specifying harbor as remote domain in REGISTRY_PROXY_REM…
Browse files Browse the repository at this point in the history
…OTEDOMAIN

#4340

Signed-off-by: CRA Mori Reo <reoring@craftsman-software.com>
  • Loading branch information
kahirokunn committed May 8, 2024
1 parent c49220d commit c59869a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion registry/proxy/proxyregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ func (r *remoteAuthChallenger) tryEstablishChallenges(ctx context.Context) error
defer r.Unlock()

remoteURL := r.remoteURL
remoteURL.Path = "/v2/"
if remoteURL.Path == "" || remoteURL.Path == "/" {
remoteURL.Path = "/v2/"
}
challenges, err := r.cm.GetChallenges(remoteURL)
if err != nil {
return err
Expand Down

0 comments on commit c59869a

Please sign in to comment.