Skip to content

Commit

Permalink
fix: fix self-signed-registry write operations when skip-tls-verify f…
Browse files Browse the repository at this point in the history
…lag used

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed Apr 5, 2023
1 parent 5406416 commit 94f2b42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/docker_registry/api.go
Expand Up @@ -419,12 +419,6 @@ attemptLoop:
}

func (api *api) writeToRemote(ctx context.Context, ref name.Reference, img v1.Image) error {
oldDefaultTransport := http.DefaultTransport
http.DefaultTransport = api.getHttpTransport()
defer func() {
http.DefaultTransport = oldDefaultTransport
}()

c := make(chan v1.Update, 200)

go remote.Write(
Expand Down

0 comments on commit 94f2b42

Please sign in to comment.