k3s/pkg/kubectl/cmd
Kubernetes Submit Queue e412ad5393
Merge pull request #51321 from mengqiy/kubectl_apply_openapi
Automatic merge from submit-queue (batch tested with PRs 51321, 55969, 55039, 56183, 55976). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Kubectl apply and strategic merge patch using openapi

- [x] support openapi in strategic merge patch
- [x] test openapi in strategic merge patch
- [x] kubectl apply use openapi to calculate diff be default. It will fall back to use baked-in types when openapi is not available.
- [x] test openapi in kubectl apply

Fixes: kubernetes/kubectl#55

```release-note
kubectl apply use openapi to calculate diff be default. It will fall back to use baked-in types when openapi is not available.
```

/assign @apelisse
2017-11-22 11:59:49 -08:00
..
auth All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
config pass printOpts by pointer 2017-11-20 14:49:23 -05:00
resource pass printOpts by pointer 2017-11-20 14:49:23 -05:00
rollout All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
set All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
templates update BUILD files 2017-10-15 18:18:13 -07:00
testdata/edit Remove use of VersionedObject and simplify builder in generic methods 2017-11-19 19:16:49 -05:00
testing pass printOpts by pointer 2017-11-20 14:49:23 -05:00
util Merge pull request #53765 from tanshanshan/fix-bug1 2017-11-21 21:38:59 -08:00
BUILD support openapi in apply 2017-11-21 10:22:43 -08:00
alpha.go Implement `kubectl alpha diff` to diff resources 2017-10-23 10:49:02 -07:00
annotate.go Unify Object and UnstructuredObject 2017-11-19 19:16:50 -05:00
annotate_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
apiversions.go
apply.go support openapi in apply 2017-11-21 10:22:43 -08:00
apply_edit_last_applied.go enforce include-uninitialized in several kubectl commands 2017-08-31 16:30:56 +08:00
apply_set_last_applied.go Unify Object and UnstructuredObject 2017-11-19 19:16:50 -05:00
apply_test.go support openapi in apply 2017-11-21 10:22:43 -08:00
apply_view_last_applied.go Remove use of VersionedObject and simplify builder in generic methods 2017-11-19 19:16:49 -05:00
attach.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
attach_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
autoscale.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
certificates.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
clusterinfo.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
clusterinfo_dump.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
clusterinfo_dump_test.go
cmd.go Merge pull request #48340 from superbrothers/completions-config-rename-context 2017-11-09 21:39:28 -08:00
cmd_test.go consolidate printer OutputOpts w PrintOpts 2017-11-20 14:49:23 -05:00
completion.go
convert.go pass printOpts by pointer 2017-11-20 14:49:23 -05:00
convert_test.go Unify Object and UnstructuredObject 2017-11-19 19:16:50 -05:00
cp.go The cp command must call Close() on files, and does not pass on Mac 2017-11-03 22:21:29 -04:00
cp_test.go The cp command must call Close() on files, and does not pass on Mac 2017-11-03 22:21:29 -04:00
create.go Remove use of VersionedObject and simplify builder in generic methods 2017-11-19 19:16:49 -05:00
create_clusterrole.go move cmd/util/printing.go#PrintSuccess to factory_builder.go 2017-11-15 10:46:39 -05:00
create_clusterrole_test.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
create_clusterrolebinding.go Merge pull request #48267 from superbrothers/clusterrole-flag-completion 2017-10-03 22:04:00 -07:00
create_clusterrolebinding_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_configmap.go
create_configmap_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_deployment.go Avoid fetching entire discovery tree when possible 2017-10-12 00:27:42 -04:00
create_deployment_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_namespace.go
create_namespace_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_pdb.go
create_pdb_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_priorityclass.go add create subcommand for priorityclass 2017-11-07 15:03:01 +08:00
create_priorityclass_test.go add create subcommand for priorityclass 2017-11-07 15:03:01 +08:00
create_quota.go
create_quota_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_role.go move cmd/util/printing.go#PrintSuccess to factory_builder.go 2017-11-15 10:46:39 -05:00
create_role_test.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
create_rolebinding.go
create_rolebinding_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_secret.go update .dockercfg content to config.json 2017-10-18 14:33:14 -04:00
create_secret_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_service.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_service_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_serviceaccount.go
create_serviceaccount_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
create_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
delete.go Remove use of VersionedObject and simplify builder in generic methods 2017-11-19 19:16:49 -05:00
delete_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
describe.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
describe_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
diff.go Remove use of VersionedObject and simplify builder in generic methods 2017-11-19 19:16:49 -05:00
diff_test.go Implement `kubectl alpha diff` to diff resources 2017-10-23 10:49:02 -07:00
drain.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
drain_test.go move cmd/util/printing.go#PrintSuccess to factory_builder.go 2017-11-15 10:46:39 -05:00
edit.go enforce include-uninitialized in several kubectl commands 2017-08-31 16:30:56 +08:00
edit_test.go Make edit test use subtests to identify flake 2017-11-16 15:45:59 -05:00
exec.go Merge pull request #55131 from stewart-yu/addnamespaces 2017-11-15 23:06:22 -08:00
exec_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
explain.go Move printing the valid resource types to a function 2017-10-30 23:45:45 -04:00
expose.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
expose_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
help.go
label.go Unify Object and UnstructuredObject 2017-11-19 19:16:50 -05:00
label_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
logs.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
logs_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
options.go
patch.go Remove unstructured error checking from affected code 2017-11-19 19:16:50 -05:00
patch_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
plugin.go exit with correct exit code on plugin failure 2017-10-18 19:01:29 -04:00
plugin_test.go
portforward.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
portforward_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
proxy.go
replace.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
replace_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
rollingupdate.go rollingupdate should use explicit casting 2017-11-19 20:41:02 -05:00
rollingupdate_test.go
run.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
run_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
scale.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
taint.go All commands must declare Unstructured or Internal 2017-11-19 20:41:02 -05:00
taint_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
top.go
top_node.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top_node_test.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top_pod.go remove dependency from top command 2017-10-31 16:15:32 +08:00
top_pod_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
top_test.go remove dependency from top command 2017-10-31 16:15:32 +08:00
version.go