@@ -18,7 +18,6 @@ type OldGlobalConfig struct {
18
18
ResetIfCloudGoneTime uint32 // reboot if no cloud connectivity
19
19
FallbackIfCloudGoneTime uint32 // ... and shorter during update
20
20
MintimeUpdateSuccess uint32 // time before zedagent declares success
21
- StaleConfigTime uint32 // On reboot use saved config if not stale
22
21
DownloadGCTime uint32 // Garbage collect if no use
23
22
VdiskGCTime uint32 // Garbage collect RW disk if no use
24
23
@@ -107,7 +106,6 @@ var globalConfigDefaults = OldGlobalConfig{
107
106
UsbAccess : true , // Controller likely to default to false
108
107
SshAccess : true , // Controller likely to default to false
109
108
SshAuthorizedKeys : "" ,
110
- StaleConfigTime : 600 , // DEPRECATED!
111
109
DownloadGCTime : 600 , // 10 minutes
112
110
VdiskGCTime : 3600 , // 1 hour
113
111
DownloadRetryTime : 600 , // 10 minutes
@@ -165,9 +163,6 @@ func ApplyDefaults(newgc OldGlobalConfig) OldGlobalConfig {
165
163
if newgc .NetworkSendTimeout == 0 {
166
164
newgc .NetworkSendTimeout = globalConfigDefaults .NetworkSendTimeout
167
165
}
168
- if newgc .StaleConfigTime == 0 {
169
- newgc .StaleConfigTime = globalConfigDefaults .StaleConfigTime
170
- }
171
166
if newgc .DownloadGCTime == 0 {
172
167
newgc .DownloadGCTime = globalConfigDefaults .DownloadGCTime
173
168
}
@@ -211,7 +206,6 @@ var GlobalConfigMinimums = OldGlobalConfig{
211
206
NetworkTestInterval : 300 , // 5 minutes
212
207
NetworkTestBetterInterval : 0 , // Disabled
213
208
214
- StaleConfigTime : 0 , // Don't use stale config
215
209
DownloadGCTime : 60 ,
216
210
VdiskGCTime : 60 ,
217
211
DownloadRetryTime : 60 ,
@@ -269,12 +263,6 @@ func EnforceGlobalConfigMinimums(newgc OldGlobalConfig) OldGlobalConfig {
269
263
newgc .NetworkTestBetterInterval , GlobalConfigMinimums .NetworkTestBetterInterval )
270
264
newgc .NetworkTestBetterInterval = GlobalConfigMinimums .NetworkTestBetterInterval
271
265
}
272
-
273
- if newgc .StaleConfigTime < GlobalConfigMinimums .StaleConfigTime {
274
- logrus .Warnf ("Enforce minimum StaleConfigTime received %d; using %d" ,
275
- newgc .StaleConfigTime , GlobalConfigMinimums .StaleConfigTime )
276
- newgc .StaleConfigTime = GlobalConfigMinimums .StaleConfigTime
277
- }
278
266
if newgc .DownloadGCTime < GlobalConfigMinimums .DownloadGCTime {
279
267
logrus .Warnf ("Enforce minimum DownloadGCTime received %d; using %d" ,
280
268
newgc .DownloadGCTime , GlobalConfigMinimums .DownloadGCTime )
@@ -311,7 +299,6 @@ func (config OldGlobalConfig) MoveBetweenConfigs() *ConfigItemValueMap {
311
299
newConfig .SetGlobalValueInt (ResetIfCloudGoneTime , config .ResetIfCloudGoneTime )
312
300
newConfig .SetGlobalValueInt (FallbackIfCloudGoneTime , config .FallbackIfCloudGoneTime )
313
301
newConfig .SetGlobalValueInt (MintimeUpdateSuccess , config .MintimeUpdateSuccess )
314
- newConfig .SetGlobalValueInt (StaleConfigTime , config .StaleConfigTime )
315
302
newConfig .SetGlobalValueInt (VdiskGCTime , config .VdiskGCTime )
316
303
newConfig .SetGlobalValueInt (DownloadRetryTime , config .DownloadRetryTime )
317
304
newConfig .SetGlobalValueInt (DomainBootRetryTime , config .DomainBootRetryTime )
0 commit comments