kubectl/pkg/cmd
Masashi Honma 309d0ee885 test: Fix deprecated --dry-run parameter
Some unit tests throw this warning.

W1013 09:06:21.581870  176998 helpers.go:567] --dry-run=true is deprecated (boolean value) and can be replaced with --dry-run=client.

This patch removes the warning by using --dry-run=client instead of --dry-run=true.

The unit tests that are affected are:

make test WHAT=./vendor/k8s.io/kubectl/pkg/cmd/apply GOFLAGS=-v
make test WHAT=./vendor/k8s.io/kubectl/pkg/cmd/create GOFLAGS=-v

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>

Kubernetes-commit: ad7cbac16354e19981e986bbc2b3fd9cfa930d45
2020-10-14 10:00:08 +09:00
..
annotate Change kubectl list option stdout 2020-07-01 17:00:25 +08:00
apiresources include APIVersion in output of 'kubectl api-resources' 2020-10-02 09:28:27 -04:00
apply test: Fix deprecated --dry-run parameter 2020-10-14 10:00:08 +09:00
attach better understanding of kubectl attach description 2020-05-11 10:12:48 +08:00
autoscale kubectl: fix the bug that kubectl autoscale does not honor --name flag 2020-06-06 17:35:47 +08:00
certificates Add support for v1 CSRs to kubectl certificate commands 2020-06-04 11:39:02 -04:00
clusterinfo Change kubectl clusterinfo to non offensive words 2020-09-30 17:59:35 -03:00
completion make kubectl/kubeadm completion script support busybox 2020-04-08 23:03:53 +08:00
config Use temporary directory when creating temporary file in tests 2020-07-17 10:41:16 +02:00
cp refactor: move kubectl-cp to staging 2020-06-15 12:20:14 +08:00
create test: Fix deprecated --dry-run parameter 2020-10-14 10:00:08 +09:00
debug Keep the imagePullPolicy of kubectl alpha debug consistent with the default 2020-09-19 11:46:41 +08:00
delete Clean up nits in delete cascade 2020-09-25 11:38:28 +08:00
describe Squash pkg/describe/versioned/ into pkg/describe/ 2020-03-03 13:06:26 +01:00
diff add labels to diff command 2020-05-07 14:30:00 -04:00
drain Use --dry-run=client,server in kubectl. 2020-01-30 20:23:33 -05:00
edit Strip .meta.managedFields for kubectl edit command 2020-06-09 14:56:57 +02:00
exec Remove double `kubectl` from output 2020-04-07 12:54:26 +02:00
explain clarify help for --api-version: note it's API group/version 2020-10-05 14:06:32 -04:00
expose switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
get fix staticcheck for kubectl pkg files 2020-09-30 15:33:29 +05:30
help Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
kustomize Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
label Change kubectl list option stdout 2020-07-01 17:00:25 +08:00
logs cleanup req.Context() and ResponseWrapper 2020-01-27 18:52:27 -08:00
options Move pkg/kubectl/cmd/{command} to staging 2019-08-01 11:01:40 -07:00
patch kubectl: Allow --patch-file to be passed to `kubectl patch` 2020-07-29 18:40:55 -04:00
plugin Link to krew's new project site 2020-03-01 21:56:56 +01:00
portforward Update the example for kubectl port-forward 2020-10-07 21:37:03 -04:00
proxy switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
replace Support kubectl delete foreground 2020-07-23 18:45:59 +08:00
rollout [kubectl/pkg/cmd/rollout]: fix typo & tidy imports 2020-05-25 09:37:18 +08:00
run allow adding annotations to pod when using kubectl run and add tests 2020-07-23 19:37:22 +05:30
scale kubectl: fix the bug that kubectl scale does not honor --timeout flag 2020-06-06 18:19:47 +08:00
set Fix dry run client ignore namespace 2020-04-26 15:13:20 +08:00
taint switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
testing fix staticcheck for kubectl pkg files 2020-09-30 15:33:29 +05:30
top Sort kubectl top output when --sort-by and --containers are used together 2020-08-06 11:47:09 -04:00
util Use temporary directory when creating temporary file in tests 2020-07-17 10:41:16 +02:00
version Fix kubectl version test to tolerate Run error coming from default 2020-04-17 17:50:24 +02:00
wait kubectl wait add ignore not found flag 2020-05-11 09:19:10 +08:00
alpha.go Add kubectl debug alpha command 2020-01-31 15:29:31 +01:00