k3s/pkg/kubectl
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
..
cmd Merge pull request #23437 from DirectXMan12/bug/cannot-edit-across-gv 2016-04-15 16:32:17 -07:00
resource Merge pull request #18835 from brendandburns/3rdparty 2016-03-31 18:09:56 -07:00
testing
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
apply.go
autoscale.go Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
bash_comp_utils.go
configmap.go
configmap_test.go
custom_column_printer.go Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding. 2016-03-16 16:43:58 +01:00
custom_column_printer_test.go
describe.go Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
describe_test.go kubectl: enhance podtemplate describer 2016-03-25 19:56:23 +01:00
doc.go
explain.go
generate.go
generate_test.go
history.go Switch api.ObjetaMetaFor to meta.Accessor 2016-03-31 17:52:31 +02:00
interfaces.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
kubectl.go Make kubectl bash completion namespace aware and add noun aliases 2016-04-03 16:25:56 +02:00
kubectl_test.go
namespace.go
namespace_test.go
proxy_server.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
proxy_server_test.go Move restclient to its own package 2016-02-29 12:05:13 -08:00
resource_printer.go Add third party support to kubectl 2016-03-31 10:53:32 -07:00
resource_printer_test.go Refactor diff into sub pkg 2016-03-21 20:21:39 +08:00
rollback.go Stop the users from rolling back a paused deployment in kubectl rollout undo 2016-03-16 15:46:22 -07:00
rolling_updater.go kubectl: set maxUnavailable to 1 if both fenceposts resolve to zero 2016-03-07 13:03:41 +01:00
rolling_updater_test.go kubectl: set maxUnavailable to 1 if both fenceposts resolve to zero 2016-03-07 13:03:41 +01:00
run.go Added job/v1 generator to kubectl run 2016-03-10 19:56:57 +01:00
run_test.go Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
scale.go
scale_test.go Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
secret.go
secret_for_docker_registry.go
secret_for_docker_registry_test.go
secret_test.go
service.go
service_test.go
serviceaccount.go added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
serviceaccount_test.go added 'kubectl create sa' to create serviceaccounts 2016-02-26 10:27:37 -05:00
sorted_event_list.go
sorted_event_list_test.go
sorted_resource_name_list.go Improve rendering of multiple quotas in namespace; show scopes 2016-02-26 20:34:15 -05:00
sorting_printer.go Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding. 2016-03-16 16:43:58 +01:00
sorting_printer_test.go Rename RawJSON to Raw in runtime.RawExtension and add ContentType & ContentEncoding. 2016-03-18 12:35:27 +01:00
stop.go Replace ineffective DeleteOptions with nil 2016-02-24 15:06:24 -08:00
stop_test.go Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
version.go
watchloop.go