Files
kubernetes/hack
Kubernetes Submit Queue 8ce6378512 Merge pull request #46091 from xilabao/new-output-in-edit
Automatic merge from submit-queue (batch tested with PRs 46091, 48280)

allow output patch string in edit command

**What this PR does / why we need it**:
allow user to get the patch from edit command if user is not familiar with the patch format.

```
# ./cluster/kubectl.sh create role a --verb=get,list --resource=no
role "a" created

# ./cluster/kubectl.sh edit role a --output-patch=true
Patch: {"rules":[{"apiGroups":[""],"resources":["nodes"],"verbs":["get","list","delete"]}]}
role "a" edited

# ./cluster/kubectl.sh create role b --verb=get,list --resource=no
role "b" created

# ./cluster/kubectl.sh patch role b -p '{"rules":[{"apiGroups":[""],"resources":["nodes"],"verbs":["get","list","delete"]}]}'
role "b" patched
```
**Which issue this PR fixes**: fixes #47173

**Special notes for your reviewer**:

**Release note**:

```release-note
Could get the patch from kubectl edit command
```
2017-07-16 18:04:42 -07:00
..
2017-03-25 12:16:50 -07:00
2017-07-07 21:16:34 +02:00
2017-06-21 10:56:00 -07:00
2017-06-08 14:59:55 -07:00
2016-07-12 21:52:54 -07:00
2016-07-12 21:52:00 -07:00
2017-02-01 15:18:32 -05:00
2017-07-05 14:24:25 -07:00
2017-07-08 11:01:03 +02:00
2016-08-02 10:27:29 -04:00
2016-07-12 21:52:00 -07:00
2017-04-27 15:01:34 -07:00
2016-07-12 21:52:00 -07:00
2017-05-19 10:17:37 -06:00
2017-04-27 15:01:34 -07:00
2016-12-06 13:45:10 -05:00
2017-05-19 10:17:37 -06:00
2016-12-14 06:03:00 -08:00