databroker: add support for config settings (#1253)

This commit is contained in:
Caleb Doxsey 2020-08-11 07:50:19 -06:00 committed by GitHub
parent ab39b628c5
commit 1285a9d91d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1333 additions and 132 deletions

View file

@ -91,6 +91,8 @@ func (src *ConfigSource) rebuild(firstTime bool) {
// add all the config policies to the list
for _, cfgpb := range src.dbConfigs {
cfg.Options.ApplySettings(cfgpb.Settings)
for _, routepb := range cfgpb.GetRoutes() {
policy, err := config.NewPolicyFromProto(routepb)
if err != nil {