Skip to content

Commit

Permalink
Fix syncing cache behind HTTP proxy (kubeflow/kfctl#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderEkdahl authored and LaVLaS committed Apr 27, 2022
1 parent f9b2833 commit 16eba4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/kfconfig/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,9 @@ func (c *KfConfig) SyncCache() error {
return errors.WithStack(err)
}
} else {
t := &http.Transport{}
t := &http.Transport{
Proxy: http.ProxyFromEnvironment,
}
t.RegisterProtocol("file", http.NewFileTransport(http.Dir("/")))
t.RegisterProtocol("", http.NewFileTransport(http.Dir("/")))
hclient := &http.Client{Transport: t}
Expand Down

0 comments on commit 16eba4a

Please sign in to comment.