k3s/pkg/kubelet/config
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
..
apiserver.go Support namespacing in cache.Store implementations 2015-01-29 17:39:49 -05:00
apiserver_test.go Support namespacing in cache.Store implementations 2015-01-29 17:39:49 -05:00
config.go Remove CONDITION from event object completely 2015-01-14 14:17:16 -08:00
config_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
doc.go Add several missing pkg Godoc files 2014-09-02 13:41:11 +02:00
etcd.go Using ExtractObj instead of ExtractToList since BoundPods is not a List type 2015-01-14 14:05:47 -08:00
etcd_test.go Increase timeout for TestEtcdSourceExistingBoundPods test 2015-01-14 17:06:04 -08:00
file.go Make kubelet's file source go through conversion 2015-01-22 13:10:59 -08:00
file_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
http.go Make kubelet's HTTP source go through conversion 2015-01-22 14:09:37 -08:00
http_test.go Make kubelet's HTTP source go through conversion 2015-01-22 14:09:37 -08:00