mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
docker: don't set timeout for image pulling requests
This commit is contained in:
parent
4215fe57a5
commit
77dba962db
@ -198,13 +198,10 @@ func (d *kubeDockerClient) PullImage(image string, auth dockertypes.AuthConfig,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ctx, cancel := getDefaultContext()
|
||||
defer cancel()
|
||||
opts.RegistryAuth = base64Auth
|
||||
resp, err := d.client.ImagePull(ctx, image, opts)
|
||||
if ctxErr := contextError(ctx); ctxErr != nil {
|
||||
return ctxErr
|
||||
}
|
||||
// Don't set timeout for the context because image pulling can be
|
||||
// take an arbitrarily long time.
|
||||
resp, err := d.client.ImagePull(context.Background(), image, opts)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user