Commit Graph

8 Commits (4c69bdaacd8149b4f86527b76d8a290086f68dbb)

Author SHA1 Message Date
Clayton Coleman 71a13f7f4b ExtractList should handle v1.RawExtension correctly
Also fixes CustomColumnPrinter to pass decoder in, and ensures a test
case tests the combined path.
2016-01-27 15:30:21 -05:00
Clayton Coleman 2fd38a7dc0 Break kubectl from assuming details of codecs
Most of the logic related to type and kind retrieval belongs in the
codec, not in the various classes. Make it explicit that the codec
should handle these details.

Factory now returns a universal Decoder and a JSONEncoder to assist code
in kubectl that needs to specifically deal with JSON serialization
(apply, merge, patch, edit, jsonpath). Add comments to indicate the
serialization is explicit in those places. These methods decode to
internal and encode to the preferred API version as previous, although
in the future they may be changed.

React to removing Codec from version interfaces and RESTMapping by
passing it in to all the places that it is needed.
2016-01-22 13:27:26 -05:00
feihujiang ad79fa6e84 Move list functions from runtime to meta package 2015-11-20 09:20:55 +08:00
Brendan Burns 51b0def44f Fix the custom column and sorting printers for v1.List 2015-10-07 19:42:19 -07:00
Brendan Burns 2b3bb33569 Address comments. 2015-09-10 13:07:13 -07:00
Brendan Burns 56a1cd76cb Address changes. 2015-09-10 13:05:32 -07:00
Brendan Burns b485821bb1 Enable custom columns printing in kubectl 2015-09-10 13:05:32 -07:00
Brendan Burns de14623775 Add a printer that knows how to print user-defined columns 2015-09-01 10:11:13 -07:00