Merge pull request #1340 from aboch/restart

Save the controller config on config reload
This commit is contained in:
Madhu Venugopal 2016-07-21 15:41:31 -07:00 committed by GitHub
commit 605ecdd099

View file

@ -378,6 +378,10 @@ func (c *controller) ReloadConfiguration(cfgOptions ...config.Option) error {
return nil
}
c.Lock()
c.cfg = cfg
c.Unlock()
var dsConfig *discoverapi.DatastoreConfigData
for scope, sCfg := range cfg.Scopes {
if scope == datastore.LocalScope || !sCfg.IsValid() {