Files
kubernetes/pkg/kubectl/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
..
2018-07-16 15:16:32 +08:00
2018-08-21 17:08:30 +02:00
2018-08-30 00:27:18 +08:00
2018-08-21 17:08:30 +02:00
2018-06-21 14:42:33 +08:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00
2017-12-25 16:23:38 +08:00
2017-08-16 12:27:36 -07:00
2018-08-21 17:08:30 +02:00
2018-08-21 17:08:30 +02:00