Commit Graph

17 Commits (9c099bf529333a1f0c30a1176a92af5e3b2f7a8c)

Author SHA1 Message Date
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
Chao Xu 0c913ed5a1 change HEAD to blob/HEAD, and add blob in versioned-docs.sh 2015-11-16 17:13:49 -08:00
Jeff Lowdermilk 6868382072 Reword misleading help text for kubectl patch 2015-11-10 13:00:04 -08:00
Chao Xu 316bd058d0 fix htmlpreview links to point to subdictory 2015-10-21 15:46:52 -07:00
deads2k 8b063a34b0 allow yaml as argument to patch 2015-09-30 11:58:42 -04:00
deads2k f1b81ff678 bind filenames var instead of looking up 2015-09-01 08:35:57 -04:00
feihujiang 0110f3176b Kubectl patch command accepts a filename param 2015-08-13 11:13:31 +08:00
Mike Danese fe0e758d4d rewrite kubectl command references to GoogleCloudPlatform 2015-08-12 14:52:13 -07:00
Peeyush Agarwal 05e069d038 Use bash comments in kubectl examples
Comments in kubectl examples should use bash comments, not Go comments.
So, replaces // by # for example strings.
2015-08-12 19:56:23 +00:00
Mike Danese 8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
hurf 33fb6170f9 Use TYPE instead of RESOURCE in help string
For commands in kubectl, use TYPE in help string.
2015-08-05 16:34:48 +08:00
Chao Xu 17cd3cf392 direct people to api-reference/definitions.html to find out if a field is mutable through kubectl replace/patch 2015-08-03 18:18:00 -07:00
Chao Xu 18d32751fd improve the error message of update pod 2015-08-02 13:41:53 -07:00
Janet Kuo 0e42d0699a Add '-o name' to mutations 2015-07-27 14:06:53 -07:00
Brendan Burns 7620041ed4 Fix a small typo. 2015-07-13 09:38:40 -07:00
Kris Rousey ffa764d60b Unify command line namespace resolution
This change allows the namespace in kubeconfig to be overridden by
specifying the namespace in the spec file. If namespace is explicitly
provided in the command line flags and the spec file has a different
namespace, this will cause an error.
2015-07-01 12:59:17 -07:00
Chao Xu 7f89a29aad add "kubectl patch". It will replace "kubectl udpate --patch" in the future 2015-06-29 16:36:45 -07:00