k3s/test/cmd
Kubernetes Submit Queue 058b26f38e
Merge pull request #68069 from apelisse/kubectl-apply-dryrun
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Add --server-dry-run flag to `kubectl apply`

- Adds the flag
- changes the helper so that we can pass options for patch,
- Adds a test to make sure it doesn't change the object

**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:
```release-note
Add new `--server-dry-run` flag to `kubectl apply` so that the request will be sent to the server with the dry-run flag (alpha), which means that changes won't be persisted.
```
2018-09-02 15:31:05 -07:00
..
BUILD delete copied comment 2018-07-06 16:26:56 -07:00
OWNERS
apply.sh Add --server-dry-run flag to `kubectl apply` 2018-09-02 13:13:46 -07:00
apps.sh Fix NameFromCommandArgs when passing command after -- 2018-08-22 15:23:13 +02:00
authorization.sh
batch.sh
certificate.sh
core.sh Make kubectl create secret tls work with process substitution 2018-08-22 10:35:07 -04:00
crd.sh Automatically install CRDs during controller init 2018-08-31 12:25:59 -07:00
create.sh Full blown kubectl create job 2018-08-01 15:04:04 +02:00
diff.sh diff: Fix crash when remote object doesn't exist 2018-08-22 06:36:29 -07:00
discovery.sh
generic-resources.sh
get.sh add prototype sorting for table rows 2018-08-30 16:09:05 -04:00
initializers.sh
kubeconfig.sh
legacy-script.sh Full blown kubectl create job 2018-08-01 15:04:04 +02:00
node-management.sh update e2e shell script due to newly introduced unreachable:NoSchedule taint when the node is in Unknown status 2018-08-27 16:19:03 -07:00
old-print.sh Automatically install CRDs during controller init 2018-08-31 12:25:59 -07:00
plugins.sh add updated plugin mechanism 2018-08-15 15:06:29 -04:00
proxy.sh
rbac.sh
request-timeout.sh
run.sh
save-config.sh
storage.sh
template-output.sh wire PrintFlags through rollout commands 2018-07-06 17:32:42 -04:00
version.sh