kubernetes/pkg/kubectl/resource
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
..
builder.go Do not provide a namespace on request url if resource does not require it 2015-02-02 10:26:19 -05:00
builder_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
doc.go Move Resource functionality to its own package 2015-01-09 11:59:06 -05:00
helper.go Move Resource functionality to its own package 2015-01-09 11:59:06 -05:00
helper_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
interfaces.go Move Resource functionality to its own package 2015-01-09 11:59:06 -05:00
mapper.go Plumb restmapper properly through apiserver and tests 2015-02-02 10:26:19 -05:00
result.go Allow errors to be ignored by the builder 2015-01-09 13:31:24 -05:00
selector.go Move Resource functionality to its own package 2015-01-09 11:59:06 -05:00
visitor.go Make the FilterNamespace function the last visitor 2015-02-02 10:26:19 -05:00