mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Currently there are a number of helper methods, all used at various stages of initializing xpack, for reading "enabled" settings. Almost all of these read the setting directly rather than use the new settings infra. This change adds an XPackSettings class to contain these settings constants, and adds all the enabled settings to it. Note: While there is an existing MonitoringSettings, I think we do not have enough settings (especially for all features) to warrant a separate class per "feature" (eg graph would have nothing). We should decide if/when this is necessary on a case by case basis, but I think the enabled settings should all go here in XPackSettings. Original commit: elastic/x-pack-elasticsearch@086152d5a5