Julian V. Modesto
13b80b48cd
Use --dry-run=client,server in kubectl.
...
- Support --dry-run=server for subcommands apply, run, create, annotate,
expose, patch, label, autoscale, apply set-last-applied, drain, rollout undo
- Support --dry-run=server for set subcommands
- image
- resources
- serviceaccount
- selector
- env
- subject
- Support --dry-run=server for create subcommands.
- clusterrole
- clusterrolebinding
- configmap
- cronjob
- job
- deployment
- namespace
- poddisruptionbudget
- priorityclass
- quota
- role
- rolebinding
- service
- secret
- serviceaccount
- Remove GetClientSideDryRun
2020-02-12 20:46:54 -05:00
Kubernetes Prow Robot
19ca6d30d2
Merge pull request #87437 from apelisse/kubectl-diff-exit-code
...
kubectl-diff: Return non-1 errors on kubectl failures
2020-02-01 18:33:20 -08:00
Kubernetes Prow Robot
dba8d60f8c
Merge pull request #87077 from soltysh/remove_run_generators
...
Remove kubectl run generators
2020-01-29 12:16:14 -08:00
Maciej Szulik
6972d6f33a
Fix kubectl taint's Complete parsing
2020-01-27 13:31:22 +01:00
Maciej Szulik
82f97775b7
Remove kubectl run generators
2020-01-22 16:44:00 +01:00
Antoine Pelisse
38c5f318c9
kubectl-diff: Test return code on failure and changes
2020-01-21 15:34:22 -08:00
drfish
010b885236
Remove workaround for RS bug in cmd apps test
2020-01-10 09:39:54 +08:00
Jordan Liggitt
f50638f439
Isolate kubectl test-cmd plugin tests
2019-12-19 01:35:36 -05:00
Daniel Holbach
a252a617a5
drop KUBE_TIMEOUT in test/cmd/kubeadm.sh
...
As runyontr remarked in test/cmd/kubeadm.sh: when
https://github.com/kubernetes/kubeadm/issues/1430 is closed,
KUBE_TIMEOUT can be removed.
2019-11-28 10:49:41 +01:00
Rob Scott
7085d692b7
Reverting managed-by-setup annotation
...
This ended up causing far more problems than it was worth, especially
given that it just attempted to provide backwards compatibility with
the alpha release.
2019-11-15 11:50:58 -08:00
Kubernetes Prow Robot
141329fd21
Merge pull request #85285 from liggitt/kubectl-resource-version
...
Fix --resource-version handling in kubectl
2019-11-14 16:39:03 -08:00
Jordan Liggitt
0ac8345d3a
Fix --resource-version handling in kubectl
2019-11-14 12:33:14 -05:00
Rob Scott
a7e589a8c6
Promoting EndpointSlices to beta
2019-11-13 14:20:19 -08:00
Jordan Liggitt
4c3bf1a660
Fix record_command suppression of test errors
2019-11-07 02:26:45 -05:00
Jordan Liggitt
cb17a2b6a6
Fix run_pod_tests
2019-11-07 02:26:45 -05:00
Jordan Liggitt
59dfac587f
Fix assert methods
2019-11-07 02:26:45 -05:00
Odin Ugedal
4e44407fa9
Fix failing service test
2019-10-23 23:23:22 +02:00
Odin Ugedal
6a73c0899a
Fix shellcheck failures SC2251
...
https://github.com/koalaman/shellcheck/wiki/SC2251
This may be masking some test failures.
We have a bunch of test code like this:
set -o errexit
[...]
! kubectl get pod wrong-pod
[...]
This test will succeed no matter what the result (return code) of kubectl is.
2019-10-23 22:47:47 +02:00
Kubernetes Prow Robot
48b90db9c3
Merge pull request #83495 from tanjunchen/fix-typo
...
remove the repeat word in documents
2019-10-06 15:05:08 -07:00
tanjunchen
de3cf23414
remove the repeat word in documents
2019-10-06 23:32:01 +08:00
Kubernetes Prow Robot
791bfac90f
Merge pull request #83084 from yutedz/ns-prune
...
Prune should respect namespace option
2019-10-04 02:46:12 -07:00
Guangming Wang
c0a4c09040
fix wrong test in generic-resources.sh
...
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-10-01 20:45:17 +08:00
Ted Yu
88e2f8e04f
Prune should respect namespace
2019-09-25 16:43:08 -07:00
ZP-AlwaysWin
d777b6aa94
replace with
2019-09-15 13:55:48 +08:00
calmkart
d558a89437
MOD:fix spelling errors
2019-09-11 15:59:15 +08:00
Antoine Pelisse
a3f4e6e933
Rename --experimental-* flags to --* for server-side apply
2019-08-28 15:03:41 -07:00
Xiangyang Chu
23ce08a7d0
Fix review comments, will squash later.
2019-07-25 14:42:23 +08:00
Xiangyang Chu
4ef227c682
Fix of review comments. Will squash later.
...
Including:
- Remove external usage of resource name vars
- Add commments about why we export field helpers
2019-07-18 09:12:28 +08:00
Xiangyang Chu
313044abd7
Fix shellcheck failures in test/cmd/l.*.sh
2019-07-17 17:07:22 +08:00
Xiangyang Chu
3a344c7168
Fix shellcheck failures in test/cmd/d.*.sh
2019-07-17 17:07:22 +08:00
Kubernetes Prow Robot
1c99825adf
Merge pull request #79566 from sukeesh/auditlog
...
Cleanup: Audit log and error capitalization
2019-07-11 14:33:59 -07:00
Kubernetes Prow Robot
b130ff4502
Merge pull request #79724 from deads2k/update-raw
...
make kubectl --raw consistent for create, update, get, delete
2019-07-09 08:26:17 -07:00
David Eads
09c55bd117
make kubectl --raw consistent for create, update, get, delete
2019-07-09 09:03:56 -04:00
Kubernetes Prow Robot
dd9ae9a1d2
Merge pull request #76227 from sawlanipradeep/window-plugin-fix
...
Replace syscall.Execve with exec.Command.
2019-07-08 13:00:36 -07:00
Pradeep Sawlani
13be373ce7
For windows, use exec.Command instead of syscall.Execve.
...
sycall.Execve is not supported on windows.
2019-07-08 10:09:51 -07:00
Sukeesh
346fdbccf0
Cleanup: Audit log and error capitalization
2019-07-08 20:20:12 +09:00
Jordan Liggitt
cf3e75de70
Remove internal object printing from kubectl
2019-06-28 10:54:50 -07:00
Sean Sullivan
e851af0aab
Removes test-cmd inappropriate dependency on kubectl
2019-06-27 10:49:42 -07:00
Jordan Liggitt
6ca80760fd
Switch test manifests to apps/v1, remove beta workloads calls
2019-06-22 13:58:07 -07:00
Kubernetes Prow Robot
0f2b01ab33
Merge pull request #78022 from xychu/fix-shellchecks-g
...
Fix shellcheck failures in test/cmd/g.*sh
2019-06-20 20:46:35 -07:00
Kubernetes Prow Robot
ab3b24ac0a
Merge pull request #77798 from xychu/fix-shellchecks-b
...
Fix shellchecks in test/cmd/{b,c}.*.sh
2019-06-20 10:00:52 -07:00
Xiangyang Chu
38a785b1ee
Fix review comments to use ${}
2019-06-20 10:46:41 +08:00
Xiangyang Chu
99b2184993
Fix shellcheck faulures in test/cmd
...
Including files after test/cmd/n*
2019-06-17 14:04:34 +08:00
Kubernetes Prow Robot
0f5650d68b
Merge pull request #75859 from k-toyoda-pi/fix_shellcheck_failure_make-rules
...
fix shellcheck failures in /hack/make-rules/test.sh
2019-06-13 20:36:47 -07:00
Kubernetes Prow Robot
8305729d7a
Merge pull request #74635 from xychu/fix-with-assert
...
Fix shellchecks follow the `${var:?}` pattern
2019-06-13 19:12:45 -07:00
Kubernetes Prow Robot
a04017a468
Merge pull request #78530 from liggitt/deflake-core-integration
...
Wait for pods to be garbage collected in integration test
2019-06-04 05:03:08 -07:00
Xiangyang Chu
cfc7b0d9c3
Change quoting format
2019-06-04 14:42:01 +08:00
Xiangyang Chu
81eb22900b
Fix shellchecks in test/cmd/{b,c}.*.sh
2019-06-04 14:42:01 +08:00
Kubernetes Prow Robot
d817a7e9a0
Merge pull request #78325 from caesarxuchao/storageVersionHash-beta
...
Graduate storageVersionHash field in the discovery doc to beta
2019-05-31 23:22:33 -07:00
Jordan Liggitt
d93ef9396b
Wait for pods to be garbage collected
2019-05-30 11:46:09 -04:00
Kubernetes Prow Robot
38afd9815e
Merge pull request #78445 from soltysh/remove_job_scale
...
Remove kubectl scale job
2019-05-30 02:24:33 -07:00
Chao Xu
2f4c273398
Graduate storageVersionHash field in the discovery doc to beta
2019-05-29 17:38:28 -07:00
Kubernetes Prow Robot
afba9c0355
Merge pull request #77877 from liggitt/deflake-integration
...
Wait for integration precondition
2019-05-28 22:21:12 -07:00
Maciej Szulik
85d8b0ce3f
Remove kubectl scale job
2019-05-28 15:24:38 +02:00
Xiangyang Chu
eee32a6a88
Fix shellcheck failures in test/cmd/g.*sh
2019-05-17 15:40:14 +08:00
Kohei Toyoda
62d5eb524b
Merge branch 'master' into fix_shellcheck_failure_make-rules
2019-05-17 08:43:08 +09:00
Kubernetes Prow Robot
6dfc996156
Merge pull request #77423 from apelisse/rollout-restart-other-workloads
...
Implement rollout restart for statefulset and daemonset
2019-05-16 16:27:06 -07:00
Antoine Pelisse
145935d815
Implement rollout restart for statefulset and daemonset
2019-05-16 08:50:42 -07:00
Jordan Liggitt
e3b4937440
Wait for integration precondition
2019-05-14 14:11:35 -04:00
Kubernetes Prow Robot
07e3b7cdca
Merge pull request #74639 from xychu/fix-shellchecks-a
...
Make test/cmd/a*.sh pass shellcheck
2019-05-10 10:38:12 -07:00
toyoda
34a120fc42
fix shellcheck failures in /hack/make-rules/test.sh
2019-05-09 17:47:12 +09:00
Jordan Liggitt
e5778f05b9
Fix unstructured list interface compatibility, fix kubectl paging
2019-05-08 02:00:18 -04:00
Jordan Liggitt
37c9e6b444
Expect the correct object type to be removed
2019-05-03 14:10:02 -04:00
Xiangyang Chu
7a385bf2ea
Fix wrong pipe in grep -q
2019-04-26 14:23:53 +08:00
Xiangyang Chu
906058bf7b
Update grep -q usage to avoid closed pipe
2019-04-26 11:39:11 +08:00
Xiangyang Chu
2260cc29b9
Make test/cmd/a*.sh pass shellcheck
2019-04-26 11:39:11 +08:00
Ahmad Nurus S
0c39d7d380
Kubectl exec support resource/name format
2019-04-25 17:44:01 +07:00
WanLinghao
7fbd71835e
'kubectl auth can-i` command would not hint user when they try to access
...
some resource out of scope. For example, try get namespace inside defaut namespace.
It would be reject by api-server but `kubectl auth can-i get namespace --namespace=default`
would give a `yes`. After this patch, a warning info would be given.
For more detail, please refer issue #75950
2019-04-10 13:12:45 +08:00
Kubernetes Prow Robot
3409a5362a
Merge pull request #76062 from apelisse/rollout-restart
...
Create `kubectl rollout restart deployment/$deployment` to do a rolling restart
2019-04-08 14:40:44 -07:00
Antoine Pelisse
1bf99e2e4e
Create kubectl rollout restart deployment/$deployment
to do a rolling restart
2019-04-06 21:14:40 -07:00
Kubernetes Prow Robot
9c2df998af
Merge pull request #75820 from YoubingLi/bugfix
...
Fixes #75706 - Show warning message when namespace is specified for deleting a cluster-scoped resource
2019-04-06 11:00:27 -07:00
Sean Sullivan
402d61c189
test-cmd: Fixes erroneous integration test that usually passes accidentally
2019-04-02 20:21:14 -07:00
Youbing Li
c438d7b495
Fixes #75706 - Show warning message when namespace is specified for deleting a cluster-scoped resource
2019-04-02 00:49:40 -04:00
Antoine Pelisse
eb904d8fa8
Add "fieldManager" to flag to PATCH/CREATE/UPDATE
...
And add a corresponding flag in kubectl (for apply), even though the
value is defaulted in kubectl with "kubectl".
The flag is required for Apply patch-type, and optional for other PATCH,
CREATE and UPDATE (in which case we fallback on the user-agent).
2019-03-08 16:03:03 -08:00
Aaron Crickenberger
3b3c977fc7
Update test/cmd/legacy-script.sh
...
Co-Authored-By: runyontr <runyontr@gmail.com>
2019-03-02 20:41:42 -05:00
Thomas Runyon
1e44e33517
pulled kubeadm tests out of runTests to run before tests in test/cmd
...
Added timeout for https://github.com/kubernetes/kubeadm/issues/1430
2019-03-01 12:17:25 -05:00
Kubernetes Prow Robot
81e6407393
Merge pull request #74140 from Liujingfang1/kflag
...
add -k flag in cli-runtime and kubectl to process kustomization directories
2019-02-26 19:40:16 -08:00
Xiangyang Chu
53c1fcf2c6
Fix shellchecks follow the ${var:?}
pattern
2019-02-27 09:27:13 +08:00
Jingfang Liu
127c2f1e74
address comments
2019-02-26 14:12:58 -08:00
Jingfang Liu
beacc87ebf
add cmdline tests for -k
2019-02-25 16:31:03 -08:00
Aaron Crickenberger
e563402701
Fix test-cmd kubectl_run flake
...
It is unrealistic to expect a cascading delete to immediately take
effect. Somehow this test got away with it for a while, but we
have finally reached a point where apiserver performance has changed
just enough to expsoe this flaky expectation.
2019-02-25 13:51:48 -08:00
Kubernetes Prow Robot
0133d14170
Merge pull request #72939 from runyontr/test-cmd-what
...
Test cmd what
2019-02-23 02:54:36 -08:00
Thomas Runyon
d4df8879f3
call kube:test:clear_all during cleanup
2019-02-22 21:23:53 -05:00
Kubernetes Prow Robot
105c9c35f7
Merge pull request #74358 from Katharine/fix-bad-junit-xml
...
Turn off command echoing in test to avoid illegal bytes in XML
2019-02-21 12:27:17 -08:00
Katharine Berry
dd4f1c1990
Turn off command echoing to avoid illegal bytes in XML.
2019-02-21 09:30:41 -08:00
Thomas Runyon
f97170ea38
Merge remote-tracking branch 'upstream/master' into test-cmd-what
2019-02-21 11:35:23 -05:00
Thomas Runyon
30c78c7e1c
Feedback from review
2019-02-21 06:15:13 -05:00
Benjamin Elder
da859ae734
make test/cmd/delete.sh pass shellcheck
2019-02-21 00:45:37 -08:00
Kubernetes Prow Robot
d60b7d6a64
Merge pull request #73866 from apelisse/add-ssa-tests
...
Add basic server-side apply test to test-cmd
2019-02-20 11:33:02 -08:00
Kubernetes Prow Robot
b473d5c111
Merge pull request #73201 from YoubingLi/bugfix
...
Fixes #73077 - Allow to convert type across all version
2019-02-20 02:23:21 -08:00
Youbing Li
0756781994
Fixes #73077 - Allow to convert type across all version
2019-02-15 04:03:35 -05:00
Antoine Pelisse
308c981633
Add basic server-side apply test to test-cmd
2019-02-08 16:51:29 -08:00
Kubernetes Prow Robot
b50c643be0
Merge pull request #73540 from rlenferink/patch-5
...
Updated OWNERS files to include link to docs
2019-02-08 09:05:56 -08:00
Thomas Runyon
6770fa7ba5
Merge remote-tracking branch 'upstream/master' into test-cmd-what
2019-02-06 12:28:52 -05:00
Thomas Runyon
4fc5be8d5a
Merge remote-tracking branch 'upstream/master' into test-cmd-what
2019-02-05 19:23:21 -05:00
David Eads
66b1f5ba67
add --all-namespaces to
2019-02-05 13:37:14 -05:00
Roy Lenferink
b43c04452f
Updated OWNERS files to include link to docs
2019-02-04 22:33:12 +01:00
Rasmus Jönsson
4c31e9855d
Add support for waiting by label selector or on all resources
...
Add test for multiple deletions in kubectl watch
2019-02-02 16:26:00 +01:00
Thomas Runyon
8772e26315
Fixed variable check for new WHAT command
2019-02-01 13:53:23 -05:00
Thomas Runyon
eecd88b450
fixed merge
2019-01-26 09:06:40 -05:00