Alex Crawford
650a239fdb
metadata: simplify merging of metadata
...
Add an internal field for CloudConfig to make it easier to distinguish.
Instead of creating two CloudConfigs and merging them, just merge the
metadata into the existing CloudConfig.
2015-01-26 16:08:26 -08:00
Jonathan Boulle
c093e44049
Merge pull request #305 from jonboulle/copyright
...
*: switch to line comments for copyright
2015-01-25 10:28:52 -08:00
Jonathan Boulle
be68a8e5cc
*: switch to line comments for copyright
...
Build tags are not compatible with block comments. Also adds copyright
header to a few places it was missing.
2015-01-24 19:32:33 -08:00
Alex Crawford
af8e590575
config: change valid tag to use regexp
...
A regular expression is much more useful than a list of strings.
2014-12-30 16:20:21 +01:00
Alex Crawford
248536a5cd
config: use a YAML transform to normalize keys
...
This removes the problematic two-pass unmarshalling.
2014-12-30 16:20:21 +01:00
Alex Crawford
057ab37364
config: seperate the CoreOS type from CloudConfig
...
Renamed Coreos to CoreOS while I was at it.
2014-12-30 16:20:20 +01:00
Jonathan Boulle
999c38b09b
Godeps: switch to coreos/yaml
2014-12-20 15:31:02 -08:00
Matthew Hooker
c944e9ef94
Enable configuration of locksmithd
2014-12-04 23:53:31 -08:00
Eugene Yakubovich
a20addd05e
flannel: added flannel support and helper to make dropins
...
fleet, flannel, and etcd all generate dropins from config.
To reduce code duplication, factor out a helper to do that.
2014-11-14 10:45:23 -08:00
Alex Crawford
51f37100a1
config: remove config validator
2014-11-07 10:18:08 -08:00
Alex Crawford
88e8265cd6
config: seperate AssertValid and AssertStructValid
...
Added an error structure to make it possible to get the specifics of the failure.
2014-11-07 10:14:34 -08:00
Alex Crawford
6e2db882e6
script: move Script into config package
2014-11-07 10:13:52 -08:00
Alex Crawford
d02aa18839
config: deprecate - in favor of _ for key names
...
In all of the YAML tags, - has been replaced with _. normalizeConfig() and
normalizeKeys() have also been added to perform the normalization of the input
cloud-config.
As part of the normalization process, falsey values are converted to "false".
The "off" update strategy is no exception and as a result the "off" update
strategy has been changed to "false".
2014-11-03 12:09:52 -08:00
Jonathan Boulle
44f0a949c5
*: switch to Godeps
2014-10-20 12:04:03 -07:00
Jonathan Boulle
6c1ba590aa
*: add license header to all source files
2014-10-17 15:36:22 -07:00
Alex Crawford
18e2f98414
cloudconfig: refactor config
...
- Move CloudConfig into config package
- Add YAML tags to CloudConfig
2014-09-23 17:59:32 -07:00
Alex Crawford
667dbd8fb7
update: refactor config
...
- Explicitly specify all of the valid options for Update
- Seperate the config from File() and Units()
- Add YAML tags for the fields
2014-09-23 17:57:43 -07:00