Files
kubernetes/pkg/kubectl
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-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-07-17 20:47:14 +10:00
2018-08-11 14:57:45 +02:00
2018-06-22 16:22:57 -07:00
2018-08-30 16:09:05 -04:00
2018-08-22 00:40:54 +03:00
2018-07-27 20:52:00 +08:00
2018-06-11 13:04:32 -07:00
2018-06-12 11:23:16 +02:00
2018-05-17 17:20:54 -04:00
2018-08-30 16:09:05 -04:00