|
45 | 45 | enableBypass bool |
46 | 46 | enableStaleSysEval bool |
47 | 47 | enableLazyPackageSave bool |
48 | | - enableBaselineEval bool |
49 | 48 | enablePackageCache bool |
50 | 49 | preloadPackageCache bool |
51 | 50 | packageCacheSize int |
@@ -99,8 +98,6 @@ func confugureEvaluator() { |
99 | 98 | enableStaleSysEval = utils.PodConfig.GetBool("stale_system_evaluation", true) |
100 | 99 | // Process (and save to db) previously unknown packages (typically third party packages) |
101 | 100 | enableLazyPackageSave = utils.PodConfig.GetBool("lazy_package_save", true) |
102 | | - // Toggle baseline evaluation |
103 | | - enableBaselineEval = utils.PodConfig.GetBool("baseline_eval", false) |
104 | 101 | // Toggle bypass (fake) messages processing |
105 | 102 | enableBypass = utils.PodConfig.GetBool("bypass", false) |
106 | 103 | // Toggle in-memory cache to speed up package lookups |
@@ -129,7 +126,7 @@ func confugureEvaluator() { |
129 | 126 | nEvalGoroutines = utils.PodConfig.GetInt("max_goroutines", 1) |
130 | 127 | // Send advisory notification immediately |
131 | 128 | enableInstantNotifications = utils.PodConfig.GetBool("instant_notifications", true) |
132 | | - // Ignore baselines/templates for satellite managed systems |
| 129 | + // Ignore templates for satellite managed systems |
133 | 130 | enableSatelliteFunctionality = utils.PodConfig.GetBool("satellite_functionality", true) |
134 | 131 | } |
135 | 132 |
|
@@ -281,15 +278,6 @@ func tryGetYumUpdates(system *models.SystemPlatform) (*vmaas.UpdatesV3Response, |
281 | 278 |
|
282 | 279 | func evaluateWithVmaas(updatesData *vmaas.UpdatesV3Response, |
283 | 280 | system *models.SystemPlatform, event *mqueue.PlatformEvent) (*vmaas.UpdatesV3Response, error) { |
284 | | - if enableBaselineEval { |
285 | | - if !system.SatelliteManaged || (system.SatelliteManaged && !enableSatelliteFunctionality) { |
286 | | - err := limitVmaasToBaseline(system, updatesData) |
287 | | - if err != nil { |
288 | | - return nil, errors.Wrap(err, "Failed to evaluate baseline") |
289 | | - } |
290 | | - } |
291 | | - } |
292 | | - |
293 | 281 | err := evaluateAndStore(system, updatesData, event) |
294 | 282 | if err != nil { |
295 | 283 | return nil, errors.Wrap(err, "Unable to evaluate and store results") |
@@ -593,11 +581,6 @@ func updateSystemPlatform(tx *gorm.DB, system *models.SystemPlatform, |
593 | 581 | data["third_party"] = system.ThirdParty |
594 | 582 | } |
595 | 583 |
|
596 | | - if enableSatelliteFunctionality && system.SatelliteManaged && system.BaselineID != nil { |
597 | | - data["baseline_id"] = nil |
598 | | - data["baseline_uptodate"] = nil |
599 | | - } |
600 | | - |
601 | 584 | err := tx.Model(system).Updates(data).Error |
602 | 585 |
|
603 | 586 | now := time.Now() |
|
0 commit comments