coreos/fleet — pull request #316 by bmizerany (2014-04-10 08:16:19+00:00)
Title: wip: new config proposal

While working to remove the dependency on globalconf - which is very unnecessary and makes things more complicated - I asked myself:

"Self, why do we write a config file? Is it simply to read it back at the whim of a SIGHUP? Why? We already require etcd whos description reads: "A highly-available key value store for shared configuration and service discovery". So why aren't we sharing the configuration with etcd?"

Think about it.

So here is the start of what might be if we remove the configuration file. Replacing the SIGHUP reload with a watch in etcd should be fairly straight forward, but I want your feedback before I keep going down this path.

Also, like, I deleted a lot of code. This is a WIP, so some things that need to be in there are not; For instance the -version flag is completely ripped out for now. Squint a little.