k3s/pkg/kubectl/cmd
k8s-merge-robot ed87db5040 Merge pull request #23437 from DirectXMan12/bug/cannot-edit-across-gv
Automatic merge from submit-queue

Make kubectl edit not convert GV on edits

Previously, kubectl edit was using a decoder to load in edits that
converted to the internal version.  It would then re-encode this
decoded value to produce a patch.  However, if you were editing
in the object in a GroupVersion that was not the internal version,
this would cause the kubectl edit command to attempt to produce
a patch which changed the GroupVersion, which would fail.

Now, we use a plain deserializer instead, so no conversion or
defaulting occurs when loading in the edited file.

Ref #23378
2016-04-15 16:32:17 -07:00
..
config Merge pull request #23660 from goltermann/vetclean 2016-04-12 06:22:16 -07:00
rollout Merge pull request #18835 from brendandburns/3rdparty 2016-03-31 18:09:56 -07:00
util Merge pull request #23660 from goltermann/vetclean 2016-04-12 06:22:16 -07:00
annotate.go Update bashcompletion codes for kubectl annotate 2016-04-14 23:40:34 +09:00
annotate_test.go phase 2 of cassandra example overhaul 2016-04-14 21:55:23 -07:00
apiversions.go Move the discovery client to its own package 2016-03-04 13:44:52 -08:00
apply.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
apply_test.go Switch api.ObjetaMetaFor to meta.Accessor 2016-03-31 17:52:31 +02:00
attach.go Refactor exec code to support version skew testing 2016-04-01 13:05:50 -04:00
attach_test.go Improve terminal reuse and attach 2016-03-21 23:59:58 -04:00
autoscale.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
clusterinfo.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
cmd.go Update bashcompletion codes for kubectl expose 2016-04-14 23:43:48 +09:00
cmd_test.go Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
convert.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
create.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
create_configmap.go update commented examples just remove $ 2016-02-29 09:41:09 -05:00
create_configmap_test.go Add kubectl create configmap 2016-02-18 21:24:21 -05:00
create_namespace.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
create_namespace_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
create_secret.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
create_secret_test.go Add kubectl create [SUBCOMMAND] pattern 2015-12-14 13:43:45 -05:00
create_serviceaccount.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
create_serviceaccount_test.go added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
create_test.go Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
delete.go Merge pull request #23756 from smarterclayton/force_delete 2016-04-14 16:55:07 -07:00
delete_test.go Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
describe.go Make kubectl bash completion namespace aware and add noun aliases 2016-04-03 16:25:56 +02:00
describe_test.go Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
drain.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
drain_test.go Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
edit.go Merge pull request #23437 from DirectXMan12/bug/cannot-edit-across-gv 2016-04-15 16:32:17 -07:00
exec.go Refactor exec code to support version skew testing 2016-04-01 13:05:50 -04:00
exec_test.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
explain.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
expose.go Update bashcompletion codes for kubectl expose 2016-04-14 23:43:48 +09:00
expose_test.go kubectl: Validate flag usage against generators 2015-12-18 15:09:53 +01:00
get.go Make kubectl bash completion namespace aware and add noun aliases 2016-04-03 16:25:56 +02:00
get_test.go phase 2 of cassandra example overhaul 2016-04-14 21:55:23 -07:00
label.go Make kubectl bash completion namespace aware and add noun aliases 2016-04-03 16:25:56 +02:00
label_test.go phase 2 of cassandra example overhaul 2016-04-14 21:55:23 -07:00
logs.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
logs_test.go Allow logs to be used with a preloaded pod. 2016-03-21 23:59:59 -04:00
namespace.go
patch.go Update bashcompletion codes for kubectl patch 2016-04-14 23:40:31 +09:00
patch_test.go Renaming HTTPClientFunc to CreateHTTPClient 2015-11-11 11:54:58 -08:00
portforward.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
portforward_test.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
proxy.go update commented examples just remove $ 2016-02-29 09:41:09 -05:00
replace.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
replace_test.go Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
rollingupdate.go Revert "rolling update will check whether the image is distinct or not, however the image with tag latest should be excluded" 2016-04-04 18:36:02 -07:00
rollingupdate_test.go Update rollback process 2015-10-08 10:49:09 +08:00
run.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
run_test.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
scale.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
stop.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
version.go Remove shorthand for client flag in kubectl version 2015-10-13 02:02:54 +08:00