diff --git a/sysinv/sysinv/sysinv/sysinv/common/app_metadata.py b/sysinv/sysinv/sysinv/sysinv/common/app_metadata.py index f8e6de7d6f..3c12bffcc6 100644 --- a/sysinv/sysinv/sysinv/sysinv/common/app_metadata.py +++ b/sysinv/sysinv/sysinv/sysinv/common/app_metadata.py @@ -17,6 +17,7 @@ import tarfile import tempfile import yaml +from oslo_config import cfg from oslo_log import log as logging from sysinv._i18n import _ from sysinv.common import constants @@ -24,6 +25,8 @@ from sysinv.common import exception from sysinv.common import kubernetes from sysinv.common import utils +CONF = cfg.CONF + LOG = logging.getLogger(__name__) @@ -627,7 +630,7 @@ def extract_bundle_metadata(file_path): 'auto_update': metadata.get(constants.APP_METADATA_UPGRADES, {}).get( constants.APP_METADATA_AUTO_UPDATE, - constants.APP_METADATA_AUTO_UPDATE_DEFAULT_VALUE), + CONF.app_framework.missing_auto_update), 'k8s_auto_update': k8s_auto_update, 'k8s_timing': k8s_update_timing, 'k8s_minimum_version': minimum_supported_k8s_version, diff --git a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py index a6270951ad..53ea6cf0d3 100644 --- a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py +++ b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py @@ -192,6 +192,10 @@ app_framework_opts = [ cfg.IntOpt('fluxcd_hr_reconcile_check_delay', default=60, help='Delay time to check progress of helmrelease'), + cfg.BoolOpt('missing_auto_update', + default=False, + help='Auto update an application if not specified in the ' + 'application metadata'), ] CONF = cfg.CONF