kubernetes/pkg/kubectl/cmd
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
..
config Merge pull request #17535 from mesosphere/jdef_abspath_breaks_proxies 2016-01-20 21:46:47 -08:00
util Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
annotate_test.go update client.Config to use GroupVersion 2015-11-21 08:29:26 -05:00
annotate.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
apiversions.go let kubectl api-versions use the discovery client 2015-10-22 10:19:34 -07:00
apply_test.go Add the client side bits of kubectl export 2015-12-22 10:41:59 -08:00
apply.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
attach_test.go update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
attach.go Print how to reattch to seesion when session ends 2015-12-11 17:00:56 +08:00
autoscale.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
clusterinfo.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
cmd_test.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
cmd.go Initial node drain implementation for #3885. 2016-01-06 17:28:18 -08:00
convert.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
create_namespace_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
create_namespace.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
create_secret_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
create_secret.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
create_test.go Add the client side bits of kubectl export 2015-12-22 10:41:59 -08:00
create.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
delete_test.go update StatusDetails to handle Groups 2015-12-17 09:14:12 -05:00
delete.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
describe_test.go Renaming HTTPClientFunc to CreateHTTPClient 2015-11-11 11:54:58 -08:00
describe.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
drain_test.go Initial node drain implementation for #3885. 2016-01-06 17:28:18 -08:00
drain.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
edit.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
exec_test.go update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
exec.go Merge pull request #14161 from feihujiang/letKubectlExecFollowDashRule 2015-10-19 08:58:37 -07:00
explain.go Merge registered and latest and move to apimachinery 2016-01-21 14:42:21 -08:00
expose_test.go kubectl: Validate flag usage against generators 2015-12-18 15:09:53 +01:00
expose.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
get_test.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
get.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
label_test.go update client.Config to use GroupVersion 2015-11-21 08:29:26 -05:00
label.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
logs_test.go Clean up and document validation strings 2015-12-18 09:40:50 -08:00
logs.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
namespace.go typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
patch_test.go Renaming HTTPClientFunc to CreateHTTPClient 2015-11-11 11:54:58 -08:00
patch.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
portforward_test.go update testapi to eliminate redundant fields 2015-12-07 15:54:26 -05:00
portforward.go Refactor exec to make attach useful without a client.Config 2015-10-09 14:36:46 -04:00
proxy.go Change kubectl proxy --api-prefix default to allow /apis/ 2015-10-14 15:49:52 -07:00
replace_test.go Renaming HTTPClientFunc to CreateHTTPClient 2015-11-11 11:54:58 -08:00
replace.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
rollingupdate_test.go Update rollback process 2015-10-08 10:49:09 +08:00
rollingupdate.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
run_test.go Hide common codec methods under helpers 2015-12-09 21:15:02 -05:00
run.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
scale.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
stop.go Break kubectl from assuming details of codecs 2016-01-22 13:27:26 -05:00
version.go Remove shorthand for client flag in kubectl version 2015-10-13 02:02:54 +08:00