diff --git a/internal/pkg/agent/application/upgrade/step_download.go b/internal/pkg/agent/application/upgrade/step_download.go index 8b8966b3a20..e6a9bd34e75 100644 --- a/internal/pkg/agent/application/upgrade/step_download.go +++ b/internal/pkg/agent/application/upgrade/step_download.go @@ -108,7 +108,7 @@ func (a *artifactDownloader) downloadArtifact(ctx context.Context, parsedVersion factory = newDownloader a.log.Infow("Downloading upgrade artifact", "version", parsedVersion, "source_uri", settings.SourceURI, "drop_path", settings.DropPath, - "target_path", settings.TargetDirectory, "install_path", settings.InstallPath) + "target_path", settings.TargetDirectory, "install_path", settings.InstallPath, "proxy_uri", settings.Proxy.URL, "proxy_disable", settings.Proxy.Disable) } if downloaderFunc == nil { downloaderFunc = a.downloadWithRetries diff --git a/internal/pkg/agent/application/upgrade/upgrade.go b/internal/pkg/agent/application/upgrade/upgrade.go index 1ae0b31c5d3..76fdcd1cbb8 100644 --- a/internal/pkg/agent/application/upgrade/upgrade.go +++ b/internal/pkg/agent/application/upgrade/upgrade.go @@ -189,6 +189,7 @@ func (u *Upgrader) Reload(rawConfig *config.Config) error { } u.settings = cfg.Settings.DownloadConfig + u.artifactDownloader = newArtifactDownloader(u.settings, u.log) return nil }