k3s/pkg/kubectl/cmd
Kubernetes Submit Queue 9807cd7d06 Merge pull request #40630 from liggitt/apply-null
Automatic merge from submit-queue (batch tested with PRs 40529, 40630)

propagate explicit nulls in apply

Rebase of https://github.com/kubernetes/kubernetes/pull/35496 on top of https://github.com/kubernetes/kubernetes/pull/40260

The client-side propagation of the raw value is no longer needed, since the client is preserving the original object in unstructured form (explicit nulls are preserved).

Kept tests and CreateThreeWayMergePatch changes from https://github.com/kubernetes/kubernetes/pull/35496

```release-note
kubectl apply now supports explicitly clearing values not present in the config by setting them to null
```

- [x] Clean up orphaned objects in test-cmd to preserve pre- and post- conditions
- [x] improve CreateThreeWayMergePatch test to not filter based on string comparison to test name
2017-02-01 00:16:39 -08:00
..
config Update generated files 2017-01-29 21:41:45 +01:00
rollout generated changes 2017-01-17 08:32:05 -05:00
set Extract strings for the 'kubectl set' family of commands. 2017-01-29 14:46:07 -08:00
templates Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
testing fixup apply null tests 2017-01-31 15:00:23 -05:00
util fix --record to work with unstructured objects 2017-01-26 19:59:27 -05:00
BUILD move portforward to client-go 2017-01-31 14:13:35 -05:00
annotate.go annotate: use unstructured objects 2017-01-26 19:59:24 -05:00
annotate_test.go annotate: use unstructured objects 2017-01-26 19:59:24 -05:00
apiversions.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
apply.go Merge pull request #40260 from liggitt/kubectl-tpr 2017-01-27 05:41:45 -08:00
apply_test.go fixup apply null tests 2017-01-31 15:00:23 -05:00
attach.go find and replace 2017-01-20 08:04:53 -05:00
attach_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
autoscale.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
certificates.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
clusterinfo.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
clusterinfo_dump.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
clusterinfo_dump_test.go
cmd.go pkg/util/flag: move to k8s.io/apiserver 2017-01-24 20:56:03 +01:00
cmd_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
completion.go Allow setting copyright header file for generated completions 2017-01-19 16:06:20 +01:00
convert.go mechanical repercussions 2017-01-13 08:27:14 -05:00
cp.go
cp_test.go
create.go Allows kubectl create -f to filter by selector. 2017-01-17 19:18:51 -08:00
create_clusterrolebinding.go update prompt in create rolebinding/clusterrolebinding 2016-12-22 11:33:49 +08:00
create_configmap.go
create_configmap_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
create_deployment.go
create_deployment_test.go
create_namespace.go
create_namespace_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
create_pdb.go
create_quota.go
create_quota_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
create_rolebinding.go update prompt in create rolebinding/clusterrolebinding 2016-12-22 11:33:49 +08:00
create_secret.go Merge pull request #35191 from SamiHiltunen/commas-in-secrets 2016-12-23 08:04:50 -08:00
create_secret_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
create_service.go
create_service_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
create_serviceaccount.go
create_serviceaccount_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
create_test.go Distinguish between client and unstructuredclient in fake factory 2017-01-26 19:59:16 -05:00
delete.go refactor: Move *Options references to metav1 2017-01-24 13:41:51 -05:00
delete_test.go Test cascading delete without client-side reaper does not GET 2017-01-27 09:18:48 -05:00
describe.go describe: use unstructured objects 2017-01-26 19:59:25 -05:00
describe_test.go describe: use unstructured objects 2017-01-26 19:59:25 -05:00
drain.go refactor: Move *Options references to metav1 2017-01-24 13:41:51 -05:00
drain_test.go move client/record 2017-01-31 19:14:13 -05:00
edit.go Merge pull request #40357 from sttts/sttts-more-cutoffs-2 2017-01-25 17:47:13 -08:00
exec.go find and replace 2017-01-20 08:04:53 -05:00
exec_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
explain.go mechanical repercussions 2017-01-13 08:27:14 -05:00
expose.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
expose_test.go move util/intstr to apimachinery 2017-01-30 12:46:59 -05:00
get.go only output "No resources found." for human readable printers 2017-01-27 13:30:23 -05:00
get_test.go pkg/api: move Semantic equality to k8s.io/apimachinery/pkg/api/equality 2017-01-29 21:41:45 +01:00
help.go
label.go label: use unstructured objects 2017-01-26 19:59:25 -05:00
label_test.go label: use unstructured objects 2017-01-26 19:59:25 -05:00
logs.go find and replace 2017-01-20 08:04:53 -05:00
logs_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
options.go Improve kubectl help with examples. 2017-01-06 13:35:43 -08:00
patch.go Print resource name when patch is done 2017-01-27 14:58:52 -08:00
patch_test.go Print resource name when patch is done 2017-01-27 14:58:52 -08:00
portforward.go move portforward to client-go 2017-01-31 14:13:35 -05:00
portforward_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
proxy.go
replace.go mechanical 2017-01-16 09:35:12 -05:00
replace_test.go Distinguish between client and unstructuredclient in fake factory 2017-01-26 19:59:16 -05:00
rollingupdate.go move util/intstr to apimachinery 2017-01-30 12:46:59 -05:00
rollingupdate_test.go
run.go move dynamic and discovery clients 2017-01-26 08:37:06 -05:00
run_test.go move util/intstr to apimachinery 2017-01-30 12:46:59 -05:00
scale.go fix --record to work with unstructured objects 2017-01-26 19:59:27 -05:00
stop.go
taint.go pkg/util: move uuid and strategicpatch into k8s.io/apimachinery 2017-01-25 19:45:09 +01:00
taint_test.go pkg/util: move uuid and strategicpatch into k8s.io/apimachinery 2017-01-25 19:45:09 +01:00
top.go modify the specifications 2017-01-04 09:12:24 +08:00
top_node.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
top_node_test.go client/restclient/fake move to client-go 2017-01-25 08:29:48 -05:00
top_pod.go refactor: move ListOptions references to metav1 2017-01-23 17:52:46 -05:00
top_pod_test.go pkg/api/resource: move to apimachinery 2017-01-29 21:41:44 +01:00
top_test.go pkg/api/resource: move to apimachinery 2017-01-29 21:41:44 +01:00
version.go Improve kubectl help with examples. 2017-01-06 13:35:43 -08:00