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
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
Ted Yu
88e2f8e04f
Prune should respect namespace
2019-09-25 16:43:08 -07:00
Antoine Pelisse
a3f4e6e933
Rename --experimental-* flags to --* for server-side apply
2019-08-28 15:03:41 -07: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
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
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
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
Katharine Berry
dd4f1c1990
Turn off command echoing to avoid illegal bytes in XML.
2019-02-21 09:30:41 -08:00
Antoine Pelisse
308c981633
Add basic server-side apply test to test-cmd
2019-02-08 16:51:29 -08:00
Antoine Pelisse
d3d4d268ac
Add test for CRD server-dry-run and fix bug
...
Add a new test to make sure we can server-dry-run CRDs and also fix a
typo now that we have a test, we could notice that it doesn't work.
2018-11-12 11:06:27 -08:00
Antoine Pelisse
967280b58e
Add --server-dry-run flag to kubectl apply
2018-09-02 13:13:46 -07:00
Di Xu
0af6faed09
kubectl: recreating resources for immutable fields when force is applied
2018-08-09 22:59:02 +08:00
David Eads
aa8110044d
straight split of test-cmd
2018-07-05 11:38:26 -04:00