mirror of
https://github.com/rancher/rke.git
synced 2025-09-04 00:14:49 +00:00
Always try to pull
This commit is contained in:
@@ -312,9 +312,6 @@ func (c *Cluster) PrePullK8sImages(ctx context.Context) error {
|
|||||||
var errgrp errgroup.Group
|
var errgrp errgroup.Group
|
||||||
hosts := hosts.GetUniqueHostList(c.EtcdHosts, c.ControlPlaneHosts, c.WorkerHosts)
|
hosts := hosts.GetUniqueHostList(c.EtcdHosts, c.ControlPlaneHosts, c.WorkerHosts)
|
||||||
for _, host := range hosts {
|
for _, host := range hosts {
|
||||||
if !host.UpdateWorker {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
runHost := host
|
runHost := host
|
||||||
errgrp.Go(func() error {
|
errgrp.Go(func() error {
|
||||||
return docker.UseLocalOrPull(ctx, runHost.DClient, runHost.Address, c.SystemImages.Kubernetes, "pre-deploy", c.PrivateRegistriesMap)
|
return docker.UseLocalOrPull(ctx, runHost.DClient, runHost.Address, c.SystemImages.Kubernetes, "pre-deploy", c.PrivateRegistriesMap)
|
||||||
|
Reference in New Issue
Block a user