k3s/pkg/tools
Yu-Ju Hong 4a72addaeb Factor out API defaulting from validation logic
Currently, the validation logic validates fields in an object and supply default
values wherever applies. This change factors out defaulting to a set of
defaulting callback functions for decoding (see #1502 for more discussion).

 * This change is based on pull request 2587.

 * Most defaulting has been migrated to defaults.go where the defaulting
   functions are added.

 * validation_test.go and converter_test.go have been adapted to not testing the
   default values.

 * Fixed all tests with that create invalid objects with the absence of
   defaulting logic.
2015-02-03 00:55:42 -08:00
..
doc.go Move etcd helpers to tools package so they can depend on api package. Add ResourceVersion, hook it up to etcd index to get atomic PUTs. 2014-07-02 15:42:05 -07:00
etcd_tools.go List objects in deterministic order 2015-01-27 09:29:40 -05:00
etcd_tools_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
etcd_tools_watch.go WatchList should not convey events for the root key 2015-01-15 16:00:49 -05:00
etcd_tools_watch_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
fake_etcd_client.go List objects in deterministic order 2015-01-27 09:29:40 -05:00