Set default options for the application framework
Set the 'missing_auto_update' and 'fluxcd_hr_reconcile_check_delay'
options to 'True' and '60' (seconds), respectively.
The 'missing_auto_update' option sets the default behavior for
automatically updating apps if not specified in the application
metadata.
The 'fluxcd_hr_reconcile_check_delay' option sets the default delay that
the application framework should wait before checking the FluxCD
reconciliation result.
Test Plan:
PASS: AIO-SX fresh install
PASS: Build platform-integ-apps without the 'upgrades' metadata section.
Confirm that the default 'missing_auto_update' value was correctly
inserted into 'auto_update' field of the 'kube_app_bundle'
database table.
Confirm that the default reconciliation delay was respected.
PASS: Change the 'missing_auto_update' value to False and the
'fluxcd_hr_reconcile_check_delay' value to 30 in sysinv.conf.
Add a new version of platform-integ-apps without the 'upgrades'
metadata section to /usr/local/share/applications/helm/.
Restart sysinv-conductor.
Confirm that the 'auto_update' column for the new version is
False.
Confirm that the application framework will not update to the new
version.
Apply platform-integ-apps and check if the new reconciliation
delay was respected.
Depends-on: https://review.opendev.org/c/starlingx/config/+/911383
Story: 2010929
Task: 49671
Change-Id: Ia30c1ca7fa78cd3980bbb6e7352ed529eb6c58dd
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
This commit is contained in:
@@ -61,6 +61,12 @@ class platform::sysinv
|
||||
'DEFAULT/logging_default_format_string': value =>
|
||||
'sysinv %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s';
|
||||
}
|
||||
|
||||
# Setup app framework behavior
|
||||
sysinv_config {
|
||||
'app_framework/fluxcd_hr_reconcile_check_delay': value => 60;
|
||||
'app_framework/missing_auto_update': value => true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user