Skip to content

Commit 0711763

Browse files
committed
Add upgrade settings to Reload
1 parent cb32f6d commit 0711763

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/pkg/agent/application/upgrade/upgrade.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (u *Upgrader) SetClient(c fleetclient.Sender) {
109109
u.log.Debugf("Set client changed URI to %s", u.fleetServerURI)
110110
}
111111

112-
// Reload reloads the artifact configuration for the upgrader.
112+
// Reload reloads the artifact download and upgrade configurations for the upgrader.
113113
// As of today, December 2023, fleet-server does not send most of the configuration
114114
// defined in artifact.Config, what will likely change in the near future.
115115
func (u *Upgrader) Reload(rawConfig *config.Config) error {
@@ -146,6 +146,7 @@ func (u *Upgrader) Reload(rawConfig *config.Config) error {
146146
}
147147

148148
u.downloadSettings = cfg.Settings.DownloadConfig
149+
u.upgradeSettings = cfg.Settings.Upgrade
149150
return nil
150151
}
151152

0 commit comments

Comments
 (0)