mirror of
https://github.com/rancher/rke.git
synced 2025-09-17 15:40:07 +00:00
Update only for pre-pull and log cleanup
This commit is contained in:
@@ -299,6 +299,9 @@ func (c *Cluster) PrePullK8sImages(ctx context.Context) error {
|
||||
var errgrp errgroup.Group
|
||||
hosts := hosts.GetUniqueHostList(c.EtcdHosts, c.ControlPlaneHosts, c.WorkerHosts)
|
||||
for _, host := range hosts {
|
||||
if !host.UpdateWorker {
|
||||
continue
|
||||
}
|
||||
runHost := host
|
||||
errgrp.Go(func() error {
|
||||
return docker.UseLocalOrPull(ctx, runHost.DClient, runHost.Address, c.SystemImages.Kubernetes, "pre-deploy", c.PrivateRegistriesMap)
|
||||
|
@@ -19,6 +19,9 @@ func (c *Cluster) CleanDeadLogs(ctx context.Context) error {
|
||||
var errgrp errgroup.Group
|
||||
|
||||
for _, host := range hosts {
|
||||
if !host.UpdateWorker {
|
||||
continue
|
||||
}
|
||||
runHost := host
|
||||
errgrp.Go(func() error {
|
||||
return doRunLogCleaner(ctx, runHost, c.SystemImages.Alpine, c.PrivateRegistriesMap)
|
||||
|
Reference in New Issue
Block a user