Commit Graph

23 Commits (ed87db5040ddac1d3e9e9f3e15c937e156d37627)

Author SHA1 Message Date
Kenjiro Nakayama 910b6bce33 Update bashcompletion codes for kubectl patch 2016-04-14 23:40:31 +09:00
Brendan Burns be6c5b332b Add third party support to kubectl 2016-03-31 10:53:32 -07:00
Mike Metral 7403878ac0 allow kubectl cmd to process dirs recursively
reqs:
    - the kubectl cmd must support the -f | --filename flag
    - the kubectl cmd must support visiting a dir one level deep,
    or using more than one resource
2016-03-28 12:44:21 -07:00
deads2k 11da9a7638 fix --record to not fail a successful patch 2016-02-19 14:28:23 -05:00
deads2k 9f003f7db3 allow patch to handle multiple types 2016-02-12 11:12:09 -05:00
Janet Kuo 5088d0e147 Record kubectl commands 2016-02-03 10:19:05 -08: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
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