Current Behavior
Config-Entries that have lists, like run_with_sudo or allowed_hosts are currently being overwritten if they are defined in both the main config ncpa.cfg as well as another config in ncpa.cfg.d. This causes issues when for example a global main ncpa.cfg is rolled out and a user adds a local ncpa.cfg.d/config.cfg to for example add another command that should be run with sudo. This then causes the monitoring to not function anymore for all other commands requiring sudo.
Expected Behavior
Instead of overwriting list-like config-entries like the one mentioned above, these entries should be appended, so the sum of all configs is stored in the config-entry. This way, users can add more commands which should run with sudo without breaking standardized monitoring.
Current Behavior
Config-Entries that have lists, like
run_with_sudoorallowed_hostsare currently being overwritten if they are defined in both the main configncpa.cfgas well as another config inncpa.cfg.d. This causes issues when for example a global mainncpa.cfgis rolled out and a user adds a localncpa.cfg.d/config.cfgto for example add another command that should be run with sudo. This then causes the monitoring to not function anymore for all other commands requiring sudo.Expected Behavior
Instead of overwriting list-like config-entries like the one mentioned above, these entries should be appended, so the sum of all configs is stored in the config-entry. This way, users can add more commands which should run with sudo without breaking standardized monitoring.